|
As a former (and current) UNIX programmer, I am finding myself in a state of confusion when it comes to DB programming in windows. Maybe you have to, that's why I'm asking this here. In UNIX I get the libraries I need to talk to the database and use SQL statements to do it all. I connect, query, then parse the results. I'm looking for something as simple to do under Windows. If it helps, I'm looking for something very php (www.php.net) like in syntax: connect(params), execute(sql statement), fetch_array(results), disconnect(). Most important no note that the fetch_array returns tabel data as record=fetch_array(query_result); record[field]="some val". Alternative to that is fetch_row which you can use the index (column number) of the field to get that value. Is there anything like that in Microsoft? Do I have to use classes of CDatabase and CRecordset? It looks like I have to jump through a lot of hoops to get something simple working.
Secondly, what are the installation requirements for the particular methods? Must I always require Microsoft Access be installed? Under UNIX I can make such a requirement because there always is a UNIX admin handy to install it. But on a PC I cannot make that assumption. I have to assume that any inexperianced user can handle it. Which also raises the question, how do I initialize a database under windows? Could I use hard coded SQL statements?
Thanks in advance
|
|
|
|
|
I'm having a nasty time with AnimateWindow(), on Win2K SP1, using VC++ 6 and ATL/WTL.
The function always fails, and GetLast Error() returns 8 (Not enough storage space to execute the command). I am handling WM_PRINT and WM_PRINTCLIENT; my breakpoints in those handlers are never hit. The dialog that I am painting is bitmap-based, but again, my paint handlers are not called, so I can't see how that would influence things.
I jusy tried the same thing with a simple dialog, and no luck - I get an error code 6 (invalid handle) which is ridiculous, since th ehandle is valied (as demonstrated by a call to ShowWindow()).
HELP!
Jim Johnson
jimj@emu.com
|
|
|
|
|
Send me example please...
|
|
|
|
|
Can someone please tell me how do I simulate pressing the ECS key in MFC??
thanks
|
|
|
|
|
Does any one know how can i find if a word or excel has a macro in it from a vc (mfc) program .
|
|
|
|
|
After Creating the dialog with Create(IDD_DIALOG_NAME,NULL) the function does not return (deadlock).
I have created a dialog with the same resource once before and everything works fine.
But the second time I try to create it the function does not come back.
It is important that I create a new thread in both cases.
The dialog I want to load uses an Avi.
Thank you
I am happy about every small hint.
|
|
|
|
|
could someone pls save me some time and show me how to read a csv file into a recordset?
bart
bart
|
|
|
|
|
hi i would like to update an resource inside a dll pragmatically. It has to be done for win9x .
any suggestion would be appreciated
tia
|
|
|
|
|
Hello all,
I need to write a security program for Win9X. Can I use CBT Hooks to gain control over most everything? I know about policies and they are not sufficient for what I need. I want to disable kb and mouse input and control what applications can be run. Links to some example cbt hooks would also be greatly appreciated.
--Tale
|
|
|
|
|
Good Evening,
I have a contact manager project to start in Feb/Mar and am considering the look of MS Money 2001. It seems a lot different from a Doc/View architecture. Can anyone give advice on how MS Money 2001's gui was designed? The only thing that looks "Visual C++ wizard" generated is the menu at the top. I have only used the Visual C++ MFC.exe wizards and modified things from there as necessary, but very limited. I figure I've got a few weeks to learn the desired gui structure before the project begins.
Thanks!
Scott!
Still learning, but getting better!
|
|
|
|
|
Hi Everybody:
I wanted to open an image(prefferably in TIFF form, but not necessarily) in a window, and draw some lines on the image?(Using VC++ MFC Application)
I 'd really appriciate any help.
thank-you.
Sadegh.
|
|
|
|
|
You basically want to download paintlib ( www.paintlib.de ) to read the tiff, then select the image into a DC and use MoveTo and LineTo to draw your lines.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
how to access to button "zoom on" on a view?(vc++6).
|
|
|
|
|
Hi all,
Im trying to incorperate a chat sort of thing into my program. It has a list control on the side listing the people who are connected to the room, a edit box where people enter their text and a list box which displays the text that people enter.
Okay, now I want to be able to do all that stuff, cept I got no idea how.
If you think you can help, or have a sample application that does that, please respond to this message or email me at pajen007@bigfoot.com
Thanks
Id appreciate it alot!
Ashman
|
|
|
|
|
Your query,
Creates many questions,
There are many different means of creating a chat app,
1. IRC
2. Web Based
3. Messaging,
4. Peer to Peer !
All of them have benefits and problems,
I found Friendly Talk useful resource.
Many people don't like it as it contains proprietry information to tenebril !
But Hey I got it working in less than an hour !
Regardz
Colin Davies
|
|
|
|
|
If anyone knows where I can get info, code or DLL for reading Kodak KDC and PCD format files, I would dearly like to know about it.
Thanking you in advance.
Happy programming!!
|
|
|
|
|
Hi Wolfram!
A friend had a book once, I think titled "Advanced Multimedia Programming". I guess it has some demo apps w/source for that thing.
Unfortunately I don't recall the website of the author today!
But let me search in my old papers maybe I come up with something!
Cheers
"Silence is golden, but my eyes still see."
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
|
try http://www.wotsit.org/
|
|
|
|
|
Hi,
Have any of you ever succesfully used the build-in profiler in VC6?
I have tried on several machines without luck.
After my App have finished, VC tell's me that it can't find a file in the outputdir called "test.pbo" (if my project is called test)...
Any ideas?
TIA,
- Anders
|
|
|
|
|
Heres a hard coded sample of assigning "Hello" to this variant bstr value. How would I assign a char* or char[] to bstr?
char *cTemp="Hello";
char cTemp2[32]="Hello";
VARIANT v;
v.vt = VT_BSTR;
v.bstrVal = SysAllocString(OLESTR("Hello"));//work ok
// how would I assign these?
v.bstrVal = cTemp;
v.bstrVal = cTemp2;
|
|
|
|
|
There might be smarter/better ways to do it, but the following code works
char *t = "just testing";
CComBSTR bs;
bs.Append(t);
VARIANT v;
v.vt = VT_BSTR;
v.bstrVal = bs;
- Anders
|
|
|
|
|
You don't assign a char* to a BSTR, because a BSTR is not a C string. If you want to create a BSTR from a char array, use an ANSI<->Unicode conversion function, for example T2OLE:
#include <atlconv.h><br />
<br />
V.bstrVal = SysAllocString ( T2COLE(cTemp) );
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
--Buffy
|
|
|
|
|
Thanks I found the follwoing seems to work...
var.bstrVal = (_bstr_t)cTemp;
|
|
|
|
|
No, that code is incorrect. It will not work reliably. You're putting into var.bstrVal the contents of a temporary variable, which gets destructed once that assignment statement completes.
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
--Buffy
|
|
|
|