|
gourav456 wrote: can i get code to convert date from vc++ format mm-dd-yyyy to mysql format
Try COleDateTime::Format Function
"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 to all,
Any Sample code to create window of our own class in MFC dialog allication..
I want to create my own class and register it ,I want to create a window On my dialog using my registered class in Dialog Based Application..
Thanking you ..
Manjunath S
|
|
|
|
|
|
Manjunath S wrote: I want to create my own class and register it...
Use AfxRegisterWndClass() or AfxRegisterClass() .
Manjunath S wrote: I want to create a window On my dialog using my registered class in Dialog Based Application..
See CWnd::Create() method.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
can i get sample code regarding creating our own window in dialog based appllication ..
Manjunath S
GESL
Bangalore
|
|
|
|
|
See here.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi again i wrote this function to update a record in access using ADO but i get an error can anyone find out whats wrong
int valField5;
int valField2;
double valField4;
string command;
_bstr_t strtest=valField4;
pCommand->ActiveConnection = m_pConn;//previously opened connection
command="UPDATE tblDictionary SET Spam="+valField2;
command+=",Pos="+strtest;//when i write pos="valField4; i get compilation error
command+=",app="+valField5;
command+=" WHERE token='"+ token;
command+="'";
_bstr_t strSQLstatment=command.c_str();
variant_t vntRecordAffected;
m_pConn->Execute(strSQLstatment,&vntRecordAffected,adCmdText);
It compiles ok but then i get an error
Error:Θï█
Press any key to continue
i know my question is not very clear but if u can see anything that might cause the error pls let me know.
is it because i'm not giving the values for all columns of the record
in the database table i have
token text
Spam number
Ham number
Pos number(with decimal)
app number
i only try to update some values is that correct
thanks again
|
|
|
|
|
Please Display! the error properly.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
-- modified at 7:25 Monday 5th June, 2006
|
|
|
|
|
antonaras wrote: command+=",Pos="+strtest;//when i write pos="valField4; i get compilation error
Have you tried:
command += ",Pos=";
command += valField4;
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
For drawing, we are using double buffering. i.e we will create a new DC and draw into it and finally bitblt to the screen.
Why we are not getting the flickering On BitBlt ing the memory DC?
Can we adopt any other method to avoid flickering.
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
When you are using double buffering method, the drawings are done in the memory DC, which is not seen to us. Then you BitBlt it to the screen DC. The BitBlt is a very fast operation and there is no erasing. Means the content in the memory DC is overwritten to existing screen content. So you will see a full image after the BitBlt.
But if you are drawing directly to the screen, for example, you may have to clear the screen and draw something and then draw something over it, etc. As all these operations are visible to us, we feel it as flickering. But in the case of double buffering, these are done in the memory DC, which is hidden from us, and the final result is shown immediately, replacing the existing one.
I think you got it.
- NS -
|
|
|
|
|
Yes dear thanks alot.
NS17 wrote: The BitBlt is a very fast operation and there is no erasing. Means the content in the memory DC is overwritten to existing screen content. So you will see a full image after the BitBlt.
I had doubt only in this matter.
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
Hello SaRath,
Yes, I agree with NS17. When you are doing bitblt your OS (as it is system call) will do mass edit of pixel. But when you do this for every pixel your function is call stack process is do and take some time. While for bitblt all pixel changes injust one call.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
I am running my application in msvc6.0 winxp sp2. I am able to compile it successfully but unable to run it. it is giving error
"Failed to initialize properly 0xc0150002" is coming.
Thanks in advance
|
|
|
|
|
First try it in Debug mode and use the debugger. With this message no one can help you
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
I tried with debugger by keeping breakpoint. but it is not reaching any of the breakpoints in the application. As soon as i hit debugger it is giving the that error message. Is there any latest version of SP that i need to install for msvc to run under winxp sp2?
|
|
|
|
|
Does this happen for any project you create? even for a win32 console application?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
I did not try.. I will try now
|
|
|
|
|
No it's not coming. it is working fine. Do i need to check any settings for my application.
Regards
|
|
|
|
|
you certainly have a memory violation due to some bad pointers handling.
see my other post and read the article
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
we are all using MS VC 6.0 with windows Xp Sp2. there is no problem in loading or creating any application.pls check ur code first. if u haven't installed the required service pack for Visual Studio, update with new one.
SaRath.
"Don't Do Different things... Do Things Differently..."
-- modified at 7:02 Monday 5th June, 2006
|
|
|
|
|
I guess she faces this problem in a particular application. Probably It should be her mistake. But not sure
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
what is the sp that is to be installed for visual studio I mean we have sp6 installed. Is it not the latest one?
Regards
|
|
|
|
|
I suppose that this error isn't generated by your application, it's an error from windows loader, the whole executable is damaged. If you can post this file somewhere, maybe I can help.
PS Check your linker options, the problem suppose to be here.
|
|
|
|
|