|
Can you more explain about your program.
|
|
|
|
|
Being that this is a rather rare error, my first guess would be that the EXE is corrupted somehow (or was built with some seriously messed up linker options). Unless you have an EXE file that is larger than 2GB, that is...
If it is a .NET application, it might have something to do with your .NET runtime/installation...?
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
hi all,
i created dll using vc++. it succesfully compiled.
but while registering i am getting error like
Library(path )
Failed - Invalid access to memory location.
so please help me for rectify this error.this is very argent
praveen Rao
|
|
|
|
|
You're missing a semicolon on line 427.
Or, in the real world, having code that compiles means it's syntactically correct, but doesn't mean it's not full of bugs. You need to work out what line is causing the error, and fix it, or post it here if you want meaningful help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: You're missing a semicolon on line 427.
:->
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Christian Graus wrote: You're missing a semicolon on line 427
|
|
|
|
|
Hi all,
I want some help in setting the tab order for controls in a dialog.
The scenario is like in the main dialog i have a tab control and 4 buttons.
In the tab control i have added dialogs.
When the main dialog is opened the focus should be on the tab control. Next it should go to the other buttons.
I have given the tab order normally giving one for the tab control. But the
when i open the dialog the focus is not the tab control it is on the next button i.e the one which is set to 2..
Can u please suggest me...
Thank U
|
|
|
|
|
In the Dialog-Editor, press CTRL-D and then click the control in the order you want them to be tab-ordered.
The Menu-entry in the dialog-editor is Format/Tab Order
Both is for VC2003 and VC6. I dont know if they have changed it in VC2005.
Failure is not an option - it's built right in.
|
|
|
|
|
Ya, I have given in the same way.Here it has to switch between 2 dialogs.
i.e the dialog in the tab control and the main dialog in which the tab control is present.
The focus not going onto the tab control..
|
|
|
|
|
The tab control needs the Tabstop style on it, and then you will be able to focus and navigate the tabs using the keyboard.
Note that, IMHO, this is rather non-standard GUI behavior, and some users may not expect focus to remain on the tab control.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
i am creating a dialog using win 32 application as i code everything. Now, the problem is that i am getting an the following error during linking in my resource file despite the fact that compilation was successful
C:\Program Files\Microsoft Visual Studio\MyProjects\dial\ids.h(4) : fatal error RC1004: unexpected end of file found
Below is my entire resource file:
#define IDC_NUMBER 2000
#define IDC_ADD 2001
#define IDC_TOTAL 2002
#define IDC_CLEAR 2003
Thanks in advance
-- modified at 4:51 Friday 11th May, 2007
TreeS
|
|
|
|
|
Is there a return after the last line (i.e., a blank line)?
Tip: go to MSDN and enter RC1004 in the search box.
|
|
|
|
|
Wamuti wrote: ...i am getting an the following error during linking...
No, you are receiving the error from the preprocessor.
Does your ids.h file have a trailing CR/LF pair?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Firstly, thanks a million fold++;). But please explain to me what a CR/LF pair is , maybe the effect and how to correct. I will really appreciate.i've been away for a while . Thanks in advance.
TreeS
|
|
|
|
|
Wamuti wrote: But please explain to me what a CR/LF pair is
Carriage Return/Line Feed.
Wamuti wrote: ...and how to correct.
Go to the very end of the file and press the Enter/Return key.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Allow me to be unprofessional for a second: Thanks sooooooooooooooooooo so much!! It worked so, no one is going to get fired!! I'm so amazed i didn't know of such a thing about CR/LF trails. Thanks so much. You are A++++++++++++++++++++++++!
TreeS
|
|
|
|
|
I got this error from command prompt
DOS/16M: [2] not a DOS/16M executable 'C:\ASMM77\ASMM77.EXE'
How i can solve this error?
Thank You.
|
|
|
|
|
TooLeeDiN wrote: I got this error from command prompt
Doing what exactly?
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Sounds like a problem with the executable's (PE) header to me...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
there is a problem about CSocket in multithread programing.
I have a class inherited from CWinThread.In the main program, I post a thread message to the thread class member(CMyThread object for example)to start a thread.I have create and block a socket object(Accept function).
When I want to end the main program,I want to end the thread ture.Whether I use CancelBlockingCall or not,there would be an assert occured.From the message ,I know,it asserted in sockcore.cpp at line 337:ASSERT(pState->m_hSocketWindow != NULL);
Why? someone would help me!Thanks
|
|
|
|
|
I recommend you to not use CSocket, use CAsyncSocket instead and read this[^] article in order to get it right.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I know what you mean.but I only want to using this thread samply and soon,that I have no time left.
The thread only must to listen all the connection from the client,and reply.
I think I would have a look on this artical after two days,when I had handed in my product.
Thanks.
|
|
|
|
|
kcynic wrote: I have no time left
Ok, but that implies that you also don't have time for bugs or undesired behaviour, right?
The MSDN documentation clearly states that cancelling a socket which is inside a blocking call will "terminate as soon as possible". Which means that you may find yourself waiting for a timeout. Whether that's acceptable or not is for you to decide, but if it's not you should use CSyncSocket instead.
Regarding your original problem: your secondary thread is a UI-thread, right?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
No,the thread is a work thread which only accept connections from clients and reply them.And the thread belong to a GUI window,when the window is been terminated,the exception would occur! I think the reason is that the socket remain blocking or active.
|
|
|
|
|
kcynic wrote: I think the reason is that the socket remain blocking or active.
You're probably right.
Using CAsyncSocket would get you out of that trouble.
Since you're probably accessing the socket from multiple threads, there could be a problem with accessing the correct underlying handle.
How do you transfer the socket between threads?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|