|
My project is crashing when I terminate it. My destructor seems to execute okay in the debugger:
~DbClass()
{
Close();
if(m_pConn)
{
m_pConn.Release();
m_pConn = NULL;
m_strConnection = _T("");
}
::CoUninitialize();
}
What should I be looking at to determine why its crashing?
Thanks,
ns
P.S. this only happens if I dont open the database . If I open it and then terminate, everything is fine.
|
|
|
|
|
what is your application?? dialog based application?
|
|
|
|
|
Nope. My app is an MFC MDI.
Thanks for helping. Why -- do dialog based apps do this often?
ns
|
|
|
|
|
Do you initialize m_pConn to NULL on the beginning of the application?
rechi
|
|
|
|
|
How to load our application before loading logon screen in Win98..
|
|
|
|
|
How to load our application before loading logon screen in Win98..
|
|
|
|
|
You can't. You need NT and services to do that.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
|
|
|
|
|
I think you can if you put it in Autoexec.bat.
Even if you win the rat race, you're still a rat.
|
|
|
|
|
Have you tried to put path to its executable to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
I am not sure about it, since I have not seen W98 for couple of years
Martin
--------------------------------------------
C'mon we all know computers are experimental devices and should only be used for playing games.
Using them for alternative stuff like business, is clearly not using them for what they are intended.
Colin Davies
|
|
|
|
|
That works, but is still after the logo.
|
|
|
|
|
Thanks, my target platform is NT, so I have almost no idea how some features from other windows system work.
Martin
--------------------------------------------
C'mon we all know computers are experimental devices and should only be used for playing games.
Using them for alternative stuff like business, is clearly not using them for what they are intended.
Colin Davies
|
|
|
|
|
Hi,
Here goes the first question: Is it possible to place a button on the status bar?
The second question follows on from the first: If it is, how does one go about this?
Thanks in advance
Regards
Ruca
|
|
|
|
|
Create a button with the statusbar as the parent window.
/Magnus
- A dog who attends a flea circus most likely will steal the whole show
|
|
|
|
|
|
|
I don't catch your meaning , can you give me a more definite suggestion? Thanx.
|
|
|
|
|
|
Hey everyone! I'm trying to create a utility which allows me to switch network settings on my Windows 2000 system. The purpose of this is to allow me to have two different configurations for my LAN connection - one for at home using a static IP address and a DHCP account for work.
My question is this: how can I programatically access the network settings under Windows 2000? Specifically I need to get and set the TCP/IP settings for a network adapter, and disable/enable it. I'm guessing that the information can be accessed in the registry somewhere within HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet, but there has to be an API that exposes this in a more sane way. Thanks!
|
|
|
|
|
The 'IP Helper API' is what you need ,check the platform SDK
|
|
|
|
|
Thanks Adara, that's exactly what I need!
|
|
|
|
|
It seems that MFC don't allow me to open documents with the same name......
I JUST WANT to have my MDI apps able to *open* and read multiple documents with the same name...i.e. my OnOpenDocument() will be called everytime even if i'm opening another file with the same name... I don't want them to have views sharing the same doc... because at later time I'm going to add different things into all of them.... and maybe have them output data eg. filename.001 for view 1, filename.002 for view 2..... Pls help.
|
|
|
|
|
The code you want to change is located in the CDocManager MFC class; its virtual function OpenDocumentFile checks if document is already open. You'd have to derive CYourDocManager and change the OpenDocumentFile method.
KB article Q198538 has sample which reportedly uses its own CDocManager to provide multiple extensions for one doc type.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
Is it possible to catch class A's messages fron within class A?
The problem is I have a class that inherits from WTL's CComboBox and I need to respond to the events in CComboBox before they are sent to the parent control.
I know I could inherit from CWindow and then contain the CComboBox, but I'd like to avoid this i f possible. I've tried using reflection too but no success there.
thx for any help
/Tomas
|
|
|
|
|
What you want can't be done in ATL, sorry. ATL doesn't have a total custom message routing system like MFC. The message gets processed by its target window, and only that window, unless you use a macro such as CHAIN_MSG_MAP or REFLECT_NOTIFICATIONS to re-route it yourself.
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
hi all,
how can I select window's "Recording Control" stereo Mix Balace or Mono Mix Balace Programetically.
thanks in advance.
|
|
|
|