|
Suppose i want users to see all the code i've written for my project. I want to show them the dialogs, but i dont know what file they're stored in.
so, in addition to all the .h and .cpp files, what else should i include for users to download?
*.*
cin >> knowledge;
|
|
|
|
|
.rc and resource.h for dialogs
and probably the contents of the res folder (icons, bitmaps etc)
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
".RC" has the dialog info.
Why don't you just ship the whole project without the debug and release folders?
|
|
|
|
|
well, i really want to show people specific things, not show them everything. i really want to let users see certain dialog boxes, and certain source code files, but i guess i can't if all teh dialog boxes are stored in one rc file.
*.*
cin >> knowledge;
|
|
|
|
|
i don't know if you're aware of this, but the users can see all your dialogs and resources anyway as long as they have your .exe file. All you have to do is open it as a resource in visualC++6.
|
|
|
|
|
... and that ladies and gentlemen, is one to grow on
|
|
|
|
|
hi,
anyone know the how to stop the JIT debugger for windows app.?
i have a program work fine in a pc w/o VS installed...
but in a VS installed pc, it crashed and popup a message box said that access not read or write memory..
any help?
thanks,
jim
|
|
|
|
|
I wouldn't stop the JIT debugger. Fix your program instead. The debugger will only show a message box if there's an error in the program. The fact that it doesn't get shown on a PC without VS installed doesn't mean that there is no error. It just means that it's an undetected error.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I agree with Ryan. Just because it does not show the error does not mean it is working properly. Debug the application to figure out what is causing the problem.
John
|
|
|
|
|
my problem is even i started the project to debug it in debug mode. the program just still crash and lead me to the assembly code rather the C code normally i due with. do u know what the problem lead to this?
|
|
|
|
|
No I am sorry I don't know what causes this.
John
|
|
|
|
|
The program is leading you to the assembly code because it is crashing in one of the windows dlls. However, this doesn't mean that this is a windows bug. This is entirely your fault because you have errors in your program. The errors are being propagated in one of the dlls and that's where the program crashes. You have to find the source of the error, and there are millions of reasons why your program is crashing. No one can help you without you posting some code (the relevant parts, that you believe are causing the crash).
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
thanks.... understand!
let me check.
|
|
|
|
|
Hello, I need to debug my application and it becomes really tricky. It seems that an instruction write somewhere in memory and that this memory is used to store other data. I would like to know if it's possible to use a breakpoint or something like that, that will stop the program at the instruction where this memory is changed ?
Thanks
|
|
|
|
|
Yes, you can set conditional breakpoints.
|
|
|
|
|
Yes I know but I cannot use a variable because this is really to complicated (it's things with void pointers that are being cast and stored in a list...). So I cannot set a breakpoint whan a VARIABLE is changing but when a MEMORY BLOCK is changing !
Any ides?
|
|
|
|
|
Hiyz,
I wanted to write a winsock 2 layered service provider using the SPI so i downloaded the layered[^] sample at MSDN. But when i install the LSP none of my internet applications work anymore (IE, games etc..). The sample really doesnt do much according to me, its more like a framework i figured. I'm running Windows XP.
Anyone can help me figure out whats wrong?
Thanks.
Kuniva
--------------------------------------------
|
|
|
|
|
Hi
Anyone knows how to access the boot sector using C programing ??
can someone please guide me so that i noe which part of C to read!!
Really thanx a million !!
please rest assured that i am definitely not trying to write a virus !!
bk
|
|
|
|
|
lol u could've just said "I'm writing a virus"
Kuniva
--------------------------------------------
|
|
|
|
|
i have to parse emails from the inbox..by writing a code in C++!that is i should get the from address,to address ,subject and the message sent thro' the email!
what are the MAPI functions i should use for this? and how should i use them in my code??what are the headers to be included for this purpose?
ranjani
|
|
|
|
|
ranjjj wrote:
what are the MAPI functions i should use for this?
http://msdn.microsoft.com/library/en-us/mapi/html/_mapi1book_simple_mapi.asp?
|
|
|
|
|
Hi people,
I've build an app wich uses some screens; all of them work OK, except for one:
If i press the cancel button, is should return to the previous window, but I get this:
"Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention"
I've just used a Button and a standard switch statement, both the sending class and the returning one are derived from CDialog!
Can someone tell me what i wrong with this?
|
|
|
|
|
BoudewijnEctor wrote:
Can someone tell me what i wrong with this?
Only if you give more info - just show a few lines of code, e.g. the function where the error hits.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
There you are:
The bold big italic code is where the prgram syas it crashes (it seems strange)
CF2FDlg is the first screen, wich calles the second (and other...) wich is IOschermclass, and is also the one wich must be shown after clicking cancel in the IOschermclass
void CF2FDlg::ga_naar_IOscherm(Cmodeprop C)
{
IOschermclass *iosclass= new IOschermclass();
INT_PTR nRet = -1;
nRet=iosclass->DoModal();
switch(nRet)
{
case IDCANCEL:
{
return;
}
case IDC_stop:
{
break;
}
case 1:
{
return;
}
default:
{
return;
}
};
return;
}
void IOschermclass::OnBnClickedTerug()
{
EndDialog(ID_TERUG);
}
BEGIN_MESSAGE_MAP(IOschermclass, CDialog)
ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnBnClickedButton2)
ON_BN_CLICKED(IDCANCEL, OnBnClickedCancel)
ON_BN_CLICKED(IDOK_IOscherm, OnBnClickedIoscherm)
//ON_BN_CLICKED(IDCANCEL2, OnBnClickedCancel2)
ON_BN_CLICKED(IDC_CHECK, OnBnClickedCheck)
ON_BN_CLICKED(IDC_BUTTON3, OnBnClickedButton3)
ON_STN_CLICKED(ID_outpad, OnStnClickedoutpad)
ON_COMMAND(IDOK_IOscherm,OnBnClickedIoscherm)
//ON_COMMAND(ID_TERUG,OnBnClickedTerug)
ON_BN_CLICKED(ID_TERUG, OnBnClickedTerug)
ON_STN_CLICKED(ID_inpad, OnStnClickedinpad)
ON_BN_CLICKED(IDC_stop, OnBnClickedstop)
ON_COMMAND(IDC_stop,OnBnClickedstop)
END_MESSAGE_MAP()
|
|
|
|
|
Some annotations to your code:
A) Where is the delete corresponding to your new . These need to come in pairs!
As it is now, you probably have a memory leak: After iosclass has gone out of scope, there is no way you can ever call delete on it.
But maybe you are doing a delete this inside of the class?
B) nRet only needs to be of type int , not INT_PTR. That you are calling DoModal() via a pointer does not change its return type.
Otherwise, it looks OK. I am puzzled here why this should not work.
Check for nRet geting assigned ID_TERUG and step through the switch/case .
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|