|
|
(Kid?)
I listened; I really did. I was so sure that I had done it that I almost didn't go check to make sure I had. But, to be on the safe side, I checked. Lo and behold, I had either been attacked by a case of The Stupids and forgotten to do it or deleted it while messing around with it.
Either way, thank you for the help.
|
|
|
|
|
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Well I never thought it possible but I have a strange problem it appears to be a release problem as I have not seen it in debug. For some reason while using the application I get the following runtime error:
Runtime Error!
Program: <program name="">
R6025
- pure virtual function call
I do not believe that I am calling the pure virtual function from the derived class as I do not get the problem all the time.
Does anyone have any suggestions in tracking this down?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Do you have any pure virtual function definitions?
The most likely cause is a runtime memory scribble. Something is causing the vtable to be overwritten with rubbish.
|
|
|
|
|
Jay Carter wrote:
Do you have any pure virtual function definitions?
Yes, quite a few in various classes.
Jay Carter wrote:
The most likely cause is a runtime memory scribble.
Um, I hope this is not the case. Though I do agree with you, it is the most likely cause.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
I have a toolbar with a drop down menu. The problem is when it is docked left or right you see the toolbar is wider then those without dropdown, as expected. But my separators paint correctly where expected vertically but it is also painted on the right, you see the separator more then once like 2 and 4 below.
1
2|
-
3
4|
-
5
|
|
|
|
|
How do I hide the selection of an item. I have developed an own multiselect function and would to hide the original selection (the blue color in CTreeCtrl).
Any tip?
_____________________________
...and justice for all
APe
|
|
|
|
|
Hi all,
I am in process of developing a Server in C++ supporting multiple protocols. The server will be exposing various functionalities, and the clients can communicate over any of the protocols may be TCP, IPX, SAP, NETBEUI to access the server to access the functionalities exposed. The server doesnot know in advance which client is using what protocol.
example my server has functionality X()
and i have n number of client.
client1 is communicating over protocol TCP to access X()
client2 is communicating over protocol IPX to access X()
..
and so on.
We had already developed ( prepared a rough code sketch), a server that is able to handle multiple clients at the same time over TCP /IP. But now, we need to enhance the same so that it can intearct with clients irrespective of the protocol being used.
I am struck with following issue:
1) How to make the client-server flow so that the server knows from which protocol the client has communicated so that the server can send the reply over the same protocol and this whole process is multithreaded.
What all steps are needed to take care of while building the system most efficient.
In summary
need to make server in such a way that it may accept a request from connection oriented protocol as well as connection-less protocol at the same time. so need to develop a mechanism for the same the work for all conditions.
Please suggest. Also please feel free to send your comments/suggestions to make this system more efficient.
All suggestions are welcome.
Thanks,
rdh
|
|
|
|
|
why don't you create a thread for each different proctocol?
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
I need your help!
Any one know how to create a connection in the folder My Network Places in Windows XP using VC++?
Thank you very much
|
|
|
|
|
Are you referring to the NetUseAdd() function?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
Ahhh, you are wanting to create a RAS entry, not a network connection (I think). For that you'll need to use the RAS-related functions. I'm not sure which is the exact one, but start with RasCreatePhonebookEntry() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thank you very much! Now I know the clue to this problem.
However, the function RasCreatePhonebookEntry() only show a dialog for user to create a connection step by step. I need a function to do it programatically. All properties are set programatically.
Does the function RasCustomEntryDlg() help me? Or I have to find another way?
|
|
|
|
|
You'll need to use RasSetEntryProperties() instead.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi David Crow!
It is a long time I don't contact with you. Can you ask you one more question?
I downloaded a VPN client software in the site http://www.umkc.edu/vpn/[^]
After installed, the software create a connection in "network connection". The thing is that new connection is very strage. It has its own dialog and its type is "connection manger".
I have been trying to figure out how the software can do that for a long time. Unfortunately I can't find the answer.
Can you help me?
Thank you very much.
Long
|
|
|
|
|
I have a report layout for a CListControl.
The control comes up with nothing selected and I'd like
to select automatically the first item as a default selection.
For List boxes SetSel would do this for me.
I can't find a similar command for this control.
It should be simple, but I don't see it.
Thanks
Ilan
|
|
|
|
|
Assuming you mean CListCtrl, Try the following:
UINT uflag = LVIS_SELECTED;
SetItemState(0, uflag, uflag);
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
It worked. Sorry I missed it, but thanks for your help.
|
|
|
|
|
Does anyone know how to create dynamic control depends on input configuration ..(specification for another application)...
this project should create an another application with controls specified in the input configuration dialog
for example:
if channels =2 means ..it should create 2 checkbox control..
if i/p voltage value is 5 to 10 means it should create listbox control with the values 5 to 10 automatically...
similarly
if any command name(ex..trigger fn) & value depends on command name means
it should create control appropriate to that...
after dynamically creating all the controls on new dialog window...
new dialog window should be seperate exe application(not related to main project)
regards
jalal
|
|
|
|
|
hiho@ll
anyone knows how to write a exe which is currently running?
what i need:
solution 1:
1. execute test.exe
2. download updated test.exe
3. overwrite test.exe with the updated test.exe
solution 2:
i know i could download in a temporary directory
create a bat file
close my application and execute bat file, which copys the exe, executes the new exe and deletes itself (test.bat)
but, how i can execute the bat file and make sure the test.exe application is closed so i can overwrite it with the downloaded?
OR
is there a way to do it like solution 1?
thx@ll
|
|
|
|
|
A slight twist to solution 1:
1. execute test.exe
2. test.exe executes checkupd.exe
3. checkupd.exe checks for updates.
4. if any are found:
4a. terminate test.exe
4b. download test.exe
4c. execute new test.exe
5. checkupd.exe is ended
Otherwise if you must do everything from within test.exe, check out the MoveFileEx(..., MOVEFILE_DELAY_UNTIL_REBOOT) function.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I do something similar to this for getting my programs to update themselves from the web. But I use an MSI for distribution so that is the second program in the scenario. I like your solution because you can easily execute the updated program when it has finished.
My method was:
1. Check for updates
2. If any found, confirm and download into user Temp directory
3. ShellExecute the MSI package (/qb) just downloaded
4. PostQuitMessage on self
The installer updates the program and then leaves the user back at the desktop. I never thought of a good way to restart the application. I might try something like yours next time.
|
|
|
|
|
Hi all!
I have a really strange problem in my project. It is a rather large windows application with a lot of different Dialogs. I'm using VisualStudio 2003 and the projcet is a Win32 (not .Net) project.
The problem is that Windows (or something) sends strange WM_WHATEVER to my main window.
I added the function:
BOOL CApp::PreTranslateMessage(MSG* pMsg)
{
//Onni is blocking a nasty kind of message
char txt[100];
if((pMsg->message == WM_DEVICECHANGE || pMsg->message == WM_TIMECHANGE || pMsg->message >= 0xc0000))
{
MessageBox(NULL, itoa(pMsg->message, txt, 16), "Caught Windows Message", MB_OK);
pMsg->wParam= NULL;
return TRUE;
}
return CWinApp::PreTranslateMessage( pMsg );
}
This blocks all messages above 0xc000 (and the WM_DEVICECHANGE and WM_TIMECHANGE but I know I dont want them, it causes a crach every time if I let them trough)
In the MSDN I read that messages above 0xc000 are application defined. And that a certain function is responsible for giving uniqe values to all the applications that wants to create new messagetypes.
I have tried to block them all. This works on most computer. But sooner or later it gets stuck in a loop: I click the ok button in "Caught WindowsMessage" and as soon as the messagebox is gone another with the same number shows up. An eternal loop, all thats left to do is Ctrl-Alt-Delete.
If I let them all trough the program crashes after a few minutes with no explanation. And when I run it in debug mode I can trase the error through the callstack to the PumpMessage() with a Windows Messages with a number like 0xc0d1
Whats going on?
I never asked for those messages!
How do I get rid of this problem?
The application is due to be realeased soon and panik is creeping up on me.
Some describing smileys:
/Onni
Onni Qvickstrom
onni.qvickstrom@genline.se
|
|
|
|