|
use
*sRetVal = _bstr_t(sTemp);
|
|
|
|
|
I writting a project using MFC and
I need to connect to a (SQL server) but
I don't know how to do it in VC++
so I need to know the object I need and
how to use them.
one Byte can hold some information but not all
MR.Byte
|
|
|
|
|
there are many ways for database conectivity in VC++ , eg ADO, DAO, etc.
ADO is a COM based solution and is more efficient than other technique. ...U have to create a DSN name for this bu using ODBC.....Go to control Panel and Find "Data Sources (ODBC)" , it would help u in creating DSN Name...
Now in MSDN Help find "ADO" the microsoft gang has already provided the sample code for this....;P
|
|
|
|
|
|
Hi Everybody,
i have porblem guys. I have a Window which consists of a TabCtrl and a ListCtrl. ListCtrl is Placed on TabCtrl. And the Main window posseses the ClipChildren property of windows. When I am loading another window or dialog on the ListCtrl and dragging or moving the loaded window it is painting the list with its backcolor and the list is erased . Will anybody give the solution as soon as possible. Its really urgent..
bye then,
Thanking u inanticipation..
aleem.
|
|
|
|
|
Some ideas:
- the Tab control should have the WS_CLIPSIBLINGS style
- the Tab control should be the last in the tab-order (or play with it)
- try to remove the WS_CLIPCHILDREN style from the main window
Hope this helps,
Paolo
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
Hi,
Did you come up with a solution cause I have the same problem?
Thx,
/Tommy
|
|
|
|
|
Hi, All.
========
Does anyone know how can I read/write data from the bios?
for example:
a) How can I get the time from the bios?
b) How can I set the time ?
c) How can I get the number of local hardrives from the bios ?
d) and a lot of more HOWs
thanks
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
I'm curious, Any particular reason to read the data from the bios rather than letting Windows handle the hard work?
Michael
|
|
|
|
|
No reason.
just FUN
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
I know how to do this with IE but I don't have a clue for others (Netscape, Opera, etc.)
Can someone enlight me?
Thanks!
|
|
|
|
|
somthing like:
<br />
window.url
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Hmmm... not exactly... in a MFC environment i meant...;)
|
|
|
|
|
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q176792
//-------------------------
Fight Fire with Fire! Huh??
psssst! Use WATER!!!!!
|
|
|
|
|
Nope, this will work with IE but not with Netscape... but thanks!
|
|
|
|
|
I don't know exactly what you mean.
Do you use a web beowser control?
Do you want from your app to find out what us the url from another help?
It will help if you'll share the code you know for getting the url from IE?
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Let's say I have a running instance of Netscape Communicator. I wanna be able to communicate with this instance to retrieve the current url. With IE, you can do this with the WindowsShell object (sorry I don't have any code written for this yet) but it will only communicate with running instances of IE, not Netscape. I know this is feasible since I saw some apps doing it (linkman). Maybe I should get the url from the Cache folder or something...
thanks for your help!
|
|
|
|
|
is there some API or method that can escape SQL strings
for example
exec AddRec 'some string's', 100, 'mike's'
must look like
exec AddRec 'some string''s', 100, 'mike''s'
|
|
|
|
|
If you need to execute the Store from Visual C++ you can do this...
CString strExec = _T("");
strExec.Format("exec AddRec \'some string\'\'s\', 100, \'mike\'\'s\'");
Cheers!!!
Carlos Antollini.
Happy Friday...
|
|
|
|
|
I need to do it automaticly
I need function like this
void escapeSQL(const char *sql, std::string& result);
|
|
|
|
|
And why don't use this:
strExec.Format("exec AddRec \"some string's\", 100, \"mike's\"");
Cheers!!!
Carlos Antollini.
Happy Friday
|
|
|
|
|
Hi,
I looking for a sample to use the ftp transfert file in binary mode.
I would like to know when I create a connection :
1/ if the connection is ok;
2/ if the ftp is finished correctly;
3/ what is the % of the file transfered;
and I would like to know how can I do for transfert packet datas of 8Mbits.
Best Regards,
youssef
|
|
|
|
|
PJ Naughter's CFTPTransferDlg might be what you're looking for.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello,
I have created a program that makes a machine move, that program is automatically started by the system.
My program needs a service to be running and the splash screen of that service hides my splash screen during a long time and creates an undesired effect.
My boss has told me that I have to hide that splash screen, it's very important for me to be able to do it.
Is there any way of doing it via changing the start parameters of the service, or can I do it programatically?
As always thank you very much.
|
|
|
|
|
Have you tried calling ::SetWindowPos on your window with flag HWND_TOPMOST ? If you're lucky enough that could do the job. Otherwise, the solution to your problem is going to be more convoluted.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|