|
Shailesh Halankar wrote: its not executing!!..
Can you expain it ? Where it is failing exactly ? Have yopu tried to debug ?
|
|
|
|
|
Are you clicking the run icon on the tool bar to execute or directly double clicking the .exe file?
KIRAN PINJARLA
|
|
|
|
|
Which is the best way to create a thread.
1> AfxBeginThread()?
or
2> deriving a class from CWinThread and calling ->CreateThread?
KIRAN PINJARLA
|
|
|
|
|
the first one...
redindian
|
|
|
|
|
Recommended reading about multithreading[^]
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
From the docs...
"Instead of calling AfxBeginThread, you can construct a CWinThread-derived object and then call
CreateThread. This two-stage construction method is useful if you want to reuse the CWinThread
object between successive creation and terminations of thread executions."
Which is better for YOU?
Mark
|
|
|
|
|
I have created an SDI app in which i dont want the save dialog box to be displayed when i press ctrl+s? I have deleted the save menu item.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
You need to delete entry for save menu from accelerator table in resources.
|
|
|
|
|
Thank you prasad.
KIRAN PINJARLA
|
|
|
|
|
Hi All
I want to set application font depending on user's selection so is there any API which set application resource font as per required.
Thanks in Advance
Atul
|
|
|
|
|
CWnd::SetFont()
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Though I'm not very clear, what you are asking. What user selection you are talking about ?
You can use CWnd::SetFont for setting font.
|
|
|
|
|
M. Atul wrote: I want to set application font depending on user's selection so is there any API which set application resource font as per required.
This[^] link should help. AFAIK there are no ready made API's for this purpose. You will have to follow certain sequential steps for Updation of existing resources.
For eg:
FindResource
LoadResource
LockResource
BeginUpdateResource
UpdateResource
EndUpdateResource
FreeLibrary
|
|
|
|
|
M. Atul wrote: I want to set application font depending on user's selection so is there any API which set application resource font as per required
exactly where you want to set font?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Do you want to set font for controls?
|
|
|
|
|
|
What ? Where ?
|
|
|
|
|
|
|
Hi all,
what is difference between Debug mode and Release mode in vc++ applications?Tell me shortly.
Thankx in advance
|
|
|
|
|
surezu wrote: Tell me shortly.
The name?
Read this[^] article.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
surezu wrote: Tell me shortly.
Well in short terms building the release version means:
- linking with the release version of used libraries
- the ASSERT macro is disabled preventing the assertion, i.e. code written inside ASSERT() statements won't be executed and the assertion message box won't be popping up in case of program error
- no memory checking will be done in the aspect of block checksum calculations
- no stack pointer checking will be performed when returning from calls
There's more to it, but this is the major topics in my opinion.
Hope this answers your question.
--
Rog
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
hi,
I have a ODBC DSN which is configured for windows authentication to connect to Sql Server.
Is there any API,which can find it programatically whether DSN is using windows authentication.
I want an API for vc++ win32 project.
thanks
|
|
|
|
|
|
please help me to use IsEnabled() function where the port is enabled .
suhdir m
|
|
|
|