|
Yes you are right, I am extremely sorry of my previous comments.
|
|
|
|
|
Would it not be easier to register the dll yourself (see below).
HINSTANCE hDll;
HRESULT hReply;
HRESULT (FAR *lpDll) (void);
hDll = LoadLibrary(szFile);
if (hDll > (HINSTANCE)32)
{
if (bRegistering)
{
lpDll = (HRESULT (FAR *) (void)) GetProcAddress(hDll, "DllRegisterServer");
}
else
{
lpDll = (HRESULT (FAR *) (void)) GetProcAddress(hDll, "DllUnregisterServer");
}
hReply = (*lpDll)();
if (hReply != 0)
{
}
}
FreeLibrary(hDll);
}
else
{
}
|
|
|
|
|
How can we use CString in WIN32 Application ??
Thanx in advance.
|
|
|
|
|
Why one would like to use CString in WIN32 application? Use std::string instead.
|
|
|
|
|
Define this, and you will have CString in Win32
#define _AFXDLL<br />
#include <afx.h><br />
#include <afxwin.h>
|
|
|
|
|
Make that
#define _AFXDLL<br />
#include <afx.h><br />
#include <afxwin.h><br />
|
|
|
|
|
Hmm, i'm sure i wrote afx.h and afxwin.h! i guess the angled brackets is the culprit!! :P
|
|
|
|
|
Yep... View Source did the trick.
I was just browsing the forum and figured I might as well make it easier for the OP.
I guess that's just one drawback of allowing html in posts.
|
|
|
|
|
Again, why one need to use MFC classes in WIN32 app, if standard library function do ?
|
|
|
|
|
I replied to the wrong person - see my earlier post in the thread.
This way you get the email notification.
Mike
|
|
|
|
|
Problem:
We have a server. Have used VC++ 6.0 compiler. Have used try-catch including catch(...) at several places.
Problem is when there is some problems like SEGV ie memory access violation, control goes to catch(...). Unlike unix there are no signal handlers here for this.
Can we somehow hook the process termination so that before server crashes we can print the stack trace using one written by us?
Problem here is how to hook the process termination??
Compiler used is VC++ 6.0
OS: windows 2000
|
|
|
|
|
I haven't used it in ages since I normally use the C++ try/catch blocks. However, you might read up on Structured Exception Handling, which is a bit of a different thing, and see if it provides the functionality you need.
Hope this points you in the right direction.
|
|
|
|
|
In my application i've to move a specified folder to another location.
suppose currently i've folder "VisualBasic"in "C:\programs\kamalesh\temp\VisualBasic" .Now I want to move this folder to new location like this "C:\programs\kamalesh". this movement should be done by coding... as by coding i'm trying to make a folder in temporary location and after fulfilling my intention i've to move that in exact location...
now the question is how can i do this by mfc coding....
thanks in advance.
kamalesh
|
|
|
|
|
|
I am very much new to MFC..pls ..How to create in MFC Tray Icon..
Dasrimk
|
|
|
|
|
|
dasrimk wrote: I am very much new to MFC..pls ..How to create in MFC Tray Icon..
Here is the wrapper class for the system tray icon
http://www.codeproject.com/shell/CTrayIcon.asp
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
bool MyFunc
{
return (Func1() && Func2());
}
where return type of Func1 and Func2 is bool. What i want to know in which order do they called in the above statement. whether Func1() called first or the Func2()? As I want Func1() should be called first. Is it the way i should write?
Thank you.
KIRAN PINJARLA
|
|
|
|
|
Will get called according to precedence of && operator . i.e. Func1 will be called first.
|
|
|
|
|
Thank you Prasad.
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: where return type of Func1 and Func2 is bool. What i want to know in which order do they called in the above statement. whether Func1() called first or the Func2()? As I want Func1() should be called first. Is it the way i should write?
Func1 called first ... if func1 function returns FALSE then Func2 will not be called.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I would like to how to get the HWND of mfc DialogBox for .Net?
Please help!
|
|
|
|
|
Can you explain it in detail ?
|
|
|
|
|
I would like to use SetCooperativeLevel function in my mfc dialogbox program. It needs the HWND parameter. How can I get this HWND?
Please help!
|
|
|
|
|
Doesn't m_hWnd member of CDialog (CWnd to be precise) serve your purpose ?
|
|
|
|