DLL Doesn't Work
I'm writing some program extensions using DLLs that are renamed to have a
different extension. (The DLLs do not use MFC or ATL.)
I have this working fine. But when, instead of having VC create the basic
files for me, I instead click 'Empty project' and then add my files, the
resulting DLL does not appear to be correct.
For starters, the resulting file is only about 50KB. Second, although
LoadLibrary does not return NULL, my DllMain routine never gets called.
I've selected DLL as the project type. I added the DEF file to the project,
added the DEF file to the appropriate entr...MFC client server application
In case where CSocket is used as the communication mechanism between the
server & the client , the OnReceive() overridable notification function gets
called when ever server receives data from client.
But when i use winsock2 where do i place thr recv() in the server side.
Since server is a dialog based MFC app, i give the following code in the
WORD wVersionRequested = MAKEWORD(2,2);
int wsaret = WSAStartup(wVersionRequested, &wsaData);
if(wsaret != 0)
AfxMessageBox(_T("WSAStartup() failed...Accessing global variables in EXE from DLL
Is there any way I can access the global variables declared in the EXE
file from a DLL?
No. And it would be a truly lousy idea to try to do so. The word "Modularization" comes to
You could pass pointers to these variables in, but frankly, it strikes me as exceptionally
poor practice to do so. If the DLL needs state, the state should come in via a pointer to
some class that defines the DLL context.
The usual reason for this question, by the way, is most often trying to partition
poorly-written code into a DLL, where the poorly-written code uses global varia...[MFC
Normally I shoult not post here because my problem is specific to wince
platforms but I am a bit in a hurry and this newsgroup has more readers.
I am trying for two days to write an application able to switch bewteens
views and to display a new command bar(this part is wince specific).
As long as I try only to switch bewteen view, everything works fine but
when I try to modify the Command bar I get an assert in wincore.cpp L
442. I have already posted to MSDN forums but with no success.
So maybe a MFC guru with a pocket pc experience could have a look ...
To reproduce my issue I hav...How to get the dll module name?
My dll project will generate a Data.dll. In my dll project, how to get
the module name, namely, the "Data.dll"?
I try to use "GetModuleHandle", but it give me the exe module name, not
the dll module name.
"kathy" <firstname.lastname@example.org> wrote in message
> My dll project will generate a Data.dll. In my dll project, how to get
> the module name, namely, the "Data.dll"?
> I try to use &qu...DLL global variable
If I have global variable in my dll, will it hold same information for
all Apps that use that DLL in the same time, or every app will have own
> If I have global variable in my dll, will it hold same information for
>all Apps that use that DLL in the same time, or every app will have own
Unless you specifically declare a shared variable (by placing it in a
shared data segment), each process that uses your DLL will have its
MVP VC++ FAQ: http://www.mvps.org/vcfaq
> Unless you specifically declare a shared variable ...MFC Resource Language Translation?
I need translate my MFC application into a variety of different languages.
The problem is my app has a lot of different dialogs all of which are
heavily text labelled. Is there anyway to export all of the text in the app
to a RTF file?
Any suggestion gratefully received!
I don't know about RTF, but my Polish translator swears by WordTrans
(http://www.wordtrans.co.uk/content/home.asp) whereas my Spanish/Portuguese
translators use Catalyst (http://www.alchemysoftware.ie/). From my point of
view, the latter translates the resource DLL files, so everything ...How I can get a missing file "SHLWAPI.dll"
I have dawn loaded the new explorer 8 at the installation a flag appers to
tel me that the instalation can't be completed for the reason that the file
SHLWAPI.dll was missing.
What can I do?.
You need to repost your issue here... (and you probably want to mention
which version of Windows you're on.)
This forum is for Microsoft Access a database software.
2010 Microsoft MVP (Access)
"I feel I have been denied critical, need to know, information!" - Tremo...Question on "rollover" type buttons (mfc/activex)
I've got a dialog box with an active-x toolbar. I'd like to have the type of
buttons that have simply a bitmap with no border. When the mouse moves
over the bitmap, the bitmap changes into a "selected" version of the bitmap.
This is just like a "hover" button in html now that I think of it..
Also, are there any good books out there on developing these types of
A simple owner-draw button that notices OnMouseEnter/OnMouseLeave events.
On Mon, 10 May 2004 19:36:31 -0700, "billy" <billy_dev#@#cox#.#net> wrote:
On a 10.0 client install w/SP2, when launching GP, I am getting
"Microsoft.Dynamics.GP.Sharepoint.dll Form Business_Desk_Sharepoint_Interop
does not exist in the dictionary. Parameter Name: formname.
To install, I uninstalled .net 3.0 sp1 and .net 2.0 sp1. I added the 2.0 sp1
back in. What is causing this error, Business Portal/Sharepoint is not
...returning the path of a linked table in VBA
Is there any way to capture the path of a linked table (say, tblContacts) in
Thanks in advance,
"Paul" <BegoneSpam@forever.com> wrote in message
> Is there any way to capture the path of a linked table (say, tblContacts)
> in VBA?
Parse it from the Connect property of the TableDef, e.g.:
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than ...Export to Excel from MFC program
I have an Excel import function working for an MFC application but now
wish to get an export-to-Excel function working as well. My code is
posted below. After creating a blank spreadsheet, and running the
function, I get error message "database engine could not find the
object InputSet", from the CRecordSet "Open()" function. "InputSet" is
the name of the database defined when the project was started, and
resides in GetDefaultSQL().
Any ideas ?
// TODO: Add you...How to change startup form in vc++ MFC
can anyone tell me how i can change form which starts
first in vc++ mfc,
actuallly i am inserting a form but whenever i run a program it will
start default form and i need
to run my form which i have inserted....
> hi friends,
> can anyone tell me how i can change form which starts
> first in vc++ mfc,
> actuallly i am inserting a form but whenever i run a program it will
> start default form and i need
> to run my form which i have inserted....
Is this a dialog based application? If so, the initial form is
determ...Create a Activex Dll in VC++6.0
I had create a ocx to view some images in vc++ 6.0 when used that ocx in
Internet explorer it takes time to display the image. I came to know that
Activex dll will be faster that the Activex ocx ,any one can say how to
create a Activex dll in vc++ 6.0
Thanks in advance
No differance between .ocx & .dll.
For ActiveX controls the name 'dll' is turned into 'ocx', but
they are...How to insure that MFC debug dll is unloaded last?
I have a problem related to order of dll unloading. (VC 6.0)
My application uses MFC (as a shared dll) and another (non MFC) dll, which exports some data.
DEBUG version of application exits MFC debug dll is unloaded first and as a result reports memory leaks for another dll static objects which allocated memory for theirs members. These objects are deleted later when mention dll is unloaded, so in reality there is no any leaks, but debuging is really painful.
So I tried to solve the problem, but have not found ANY solution. DELAY load compiler option does not work for any of the mentioned ...sound path from itunes
I downloaded a song from itunes and when I try to embed it in the ppt an
error box comes up and says that the path can't be found. I checked other
songs and get the same thing. A song I bought from another site worked.
Please help me my presentation is next week.
Is your song in the MP3 format?
Is it in the same FOLDER as your presentation?
Maybe your total folder length is toooo long see
See point 2
awesome - powerpoint ...How to create CDialog from different DLL?
I’m trying to create a CDialog object, which is defined in one DLL from a
class in another DLL.
The dialog appears to be successfully created but its handle is invalid,
when I’m trying to use "this" the application crashes with a debug assertion
at wincore.cpp "LookupPermanent".
Do you have any suggestion how to solve this problem?
If it was successfully created, you would have a valid handle of the dialog.
I suspect that it was not created successfully because the resource for the
dialog was not found.
What type of DLL are you using. If its an...MFC/VC/ATL/STL Goldmine has been updated: http://preciseinfo.org/Convert/index_Convert_mfc.html
Site search has been fully implemented. You can search the entire
site or collection or a single chapter related to specific context
to find what you are looking for.
We are currently out of sync with google.
So, if you do a google search you might see a different article
than what google shows. So, it is suggested to search the site
instead. First of all it is a much more powerful search than
what you can do with Google. Plus you are going to see the
MFC Goldmine collection contains the extensive collection of
articles going back several y...MFC Dlls #2
I was written an MFC EX. DLL and use in MFC App - it's
But when I want to use it in C# ( C Style export ) it
Because it is an MFC Extension DLL. This makes a lot of assumptions about the environment
in which it is running, which would not be true in a C# environment. Converting it to a
conventional (non-extension) DLL should solve the problem.
On Sat, 17 Jan 2004 11:54:55 -0800, "Koby" <email@example.com> wrote:
>I was written an MFC EX. DLL and use in MFC App - it's
>...Windows cannot access the specified device, path or file...
My buddy sent me a little file, 1.25mb, and I cannot open it. He can but I
cannot. I get "Windows cannot access the specified device, path or file. You
may not have the approiate permissions to access the item".
XP Pro. Retail version. Have disk. This is my home computer. No
administrator rights needed. No password needed. I'm the only one in the
house. Computer in my name. No other users.
Joe T. wrote:
> My buddy sent me a little file, 1.25mb, and I cannot open it. He
> can but I cannot. I get "Windows cannot access the specified
> de...getting rid of the standard mfc icon (in taskbar)
i made an application based on mfc, and used the standard mfc icon up until
now. i thought changing it would be a simple task. in the resource editor i
got rid of all mfc icons in various resolutions, and replaced it with my own
icon in 3 different resolutions.
it does work in almost all the places: the main window is shown with the
correct icon, the taskbar shows correctly with the icon, even MessageBox()
shows the icon now, but as soon as i do open a MessageBox while my
main-window is shown, the counter in taskbar moves up to two (you know how
windows xp groups together tasks with th...CAsyncSocket()::OnReceive() will not be fired !!! -> MFC BUG ?!?
i have wrotten a FTP-Client with a own Class of CAsyncSocket. Sometime the messagge from the Server will NOT BE reveiced, but the server have ben sendet to the Client ( the OnReceive() of the Client is not called !!)
I use MSVS6.0
OR can´t use the CAsyncSocket for a FTP-Client ? ( the CInternetConnetion can´t use, why i need ALL sended and received data for displaying
Nico van Halobar
Nico van Halobard wrote:
> Hello peoples,
> i have wrotten a FTP-Client with a own Class of CAsyncSocket. Sometime the messagge from the Server will NOT BE revei...Path changing in formula when workbook in different folder
Hi , I have a workbook that references another workbook via a cell
It is to calculate a cumulative year to date total from monthly
I have noticed that it now changed the path if I copy the sheet to a
subfolder and open it. For example if I copy the book to
C:/Folder/Subfolder then open it, all the formula have automatically
Why should it just start doing this today ? How do I prevent it ?
Thanks , hals_left
...file association using MFC
I am in the process of leaning VC++ MFC. I have written a
program wthat will display the complete path for the
selected file name from open dialog box. Now I would like
to associate my program to a file type.. lets say .jpeg
files. When I double click on any .jpeg files I would like
to have may program open and display the complete path.
I know it has to do something with DDE. Can somebody point
me to the right direction.
Thanks for your help
Here is the code
static char BASED_CODE szFilter =
"Image Files (*.jpeg, *.jpg, *....Running a .bat file with spaces in the path.
I am trying to run a .bat file from a macro. The shell command works okay most of the time - but I cannot seem to make it work if there is a space in the path. (So, running C:\Apps\BFIle.bat works, but not C:\My Apps\BFile.bat)
As the .bat file I want to run will change, I want to enter the path in a cell, and then run the macro with a button. This means simply enteing the path in double quotation marks in the Shell command will not work.
BFile = Range("A2").Value
i = Shell (BFile, 1)
Odd that a space is giving you a problem. This works for me whether the
path has a ...