|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You should use the debug dll in Debug mode,and the Release dll in release mode.
|
|
|
|
|
This is what I am doing.....
|
|
|
|
|
Not sure though. I face registration problem in one of my COM dlls in release mode. I found that .rc was excluded accidenlty in release configuration. See, if simlar thing is happening to you.
In addition I recommend you to go through this[^] article.
|
|
|
|
|
I have only one .rc, he create two diffrent files for debug and release (.res).
|
|
|
|
|
prasad_som wrote:
In addition I recommend you to go through this[^] article.
hi,
Happy new year.. i am afraid, this article is no use here!
"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
|
|
|
|
|
ThatsAlok wrote: Happy new year
Thanks. Same to you.
ThatsAlok wrote: i am afraid, this article is no use here!
Atleast, should get idea, what problem may occurs in release, but not in debug build.
|
|
|
|
|
Ohad Cabiri wrote: When I am trying to run the my dll and program use it in release mode it crashs on these lines:
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
in AFXWIN1.inl header
How... how you debugged a released mode dll
"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
|
|
|
|
|
ThatsAlok wrote: How... how you debugged a released mode dll
Possibly , using this[^] technique.
|
|
|
|
|
I have developed a program in which i created the window using HWND hwnd,createwindow(hwnd......
My program looks for usb drive device and if its found message is displayed.Now the problem is if i minimize the window and insert the usb drive i want the window to be maximized automatically like autoplay for usbdrive.How to go about this?How to maximize the window from taskbar?I tried setwindowpos, it works when we click the window.I want to maximize it from the task bar.Thanks in advance
|
|
|
|
|
Use ShowWindow .
ShowWindow(hWnd,SW_SHOWMAXIMIZED);
|
|
|
|
|
|
WhiteSky wrote: WM_SHOWWINDOW
hi Hamid,
Happy new year dude, sorry it is not advisable to post WM_SHOWWINDOW message, you have to either use SetWindowPos api or ShowWindow api.... same apply for WM_SIZE message
"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
|
|
|
|
|
I know and when we can use of ShowWindow or SetWindowPos its better we use of them.I want to said also we have WM_SHOWWINDOW .
Thank you and for you but its early,New year is in April on my country
|
|
|
|
|
Anyone has something for me? I'm a beginner in Visual C++. And I want to learn the begin lessons. Anyone help?
If could, post a reply or simply send message to me at: thomasjohnsilver@gmail.com
Thanks in advance!
Noname
|
|
|
|
|
If you browse through C++/MFC[^] section of this site, you will get articles to start with.
Here is an example[^].
|
|
|
|
|
|
lp4me wrote: Anyone has something for me? I'm a beginner in Visual C++. And I want to learn the begin lessons. Anyone help?
better bought some book, after that refer net article
lp4me wrote: If could, post a reply or simply send message to me at: thomasjohnsilver@gmail.com
sorry this online forum.. no body email you the books or reference
"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
|
|
|
|
|
Hi,
while I am trying to retrieve the data from the database, where ever there is blank space (empty) in the correspoding column ,I am getting junk values.
This is my code.
VARIANT v;
v.vt=VT_BSTR;
CString str;
str = " ";
while(!(VARIANT_TRUE == pRecSet->EndOfFile))
{
str = pRecSet->GetCollect(v).bstrVal; .
//There is some junk data in str;
.
.
}
Should I do any other initialization or conversion? I have even tried using "NULL" but failed.
Thanks in advance.
Taruni
|
|
|
|
|
Taruni wrote: VARIANT v;
Use VariantInit to initialize the variant. Your code will be like this,
VARIANT v;
VariantInit(&v);
v.vt=VT_BSTR;
Check value of vt after using it in function. In other words, are you sure function in populates vt with VT_BSTR .
|
|
|
|
|
Hi Prasad,
Thank you for your immediate response.
VariantInit(&v);
I already tried this and but no use.
Taruni
|
|
|
|
|
What about my second point ? Does vt is initiailized to VT_BSTR , After using it as parameter ?
If yes, Do you see junk values in bstrVal of variant argument ?
|
|
|
|
|
Yes Prasad ..there are is still junk data in bstarVal.
My code is as follows :
VARIANT v;
VariantInit(&v);
v.vt=VT_BSTR;
CString str;
str = " ";
while(!(VARIANT_TRUE == pRecSet->EndOfFile))
{
str = pRecSet->GetCollect(v).bstrVal;
.
.
}
Taruni
|
|
|
|
|
Which class does GetCollect belongs to ?
-- modified at 4:24 Tuesday 2nd January, 2007
How it is declared ? If it is out parameter, you are not using its value further. Instead you are using its return value.
|
|
|
|
|
I am receiving some voice file from the network i am storing it into a buuffer using Receive() function and that is a sound file which is converted into a wave format. I am trying to play that buffer here in the recieving side using
PlaySound(Buff,NULL,SND_MEMORY|SND_ASYNC)
but i could not here anything after playing.
But if i am saving that buffer into a .wav file and play it by a doubleclick on the file it plays the sound. Where might be the problem?
Thanks in advance!
KIRAN PINJARLA
|
|
|
|