|
from what i get this is a question where more programmers need help, so :
i'm a novice programmer on Visual studio.net c++ and i need to connect it to mysql 4.1.17, it can be done with myodbc, bytefx or oledb, or another one that results, to make the normal operations (insert, select, delete, update ).
please help fast, it's really importante, and a sample application would be great, send it to horus.cv@gmail.com, but the code and the explanation is also good.please help,
thanks
|
|
|
|
|
Are you using managed C++ ? ( your in the MC++ forum ). If so, then the System.Data namespace has ODBC classes that will work fine.
If, as I suspect, you're just using vanilla C++, you should ask in the C++ forum.
Actually, a quick google gave me heaps of examples, including a couple on this very site. perhaps you should have a look around for yourself, type MySQL into the article search.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm trying to develop an add-in for Outlook Express, the add-in is supposed to intercept sending mails and (optionally) add attachments to the mail being sent.
I have already done that on Microsoft Outlook using Visual Studio Tools for Office, but I couldn't find any way to do it on Outlook Express.
Help would be greatly appreciated, just point me on the way.
Thanks in advance,
Wessam Fathi
Wessam Fathi
|
|
|
|
|
Hi all!
I have done following to generate the assemblies for AXSHDocVw.dll SHDocVw.dll
aximp c:\windows\system32\shdocvw.dll
then I have added the reference to generated assemblies in my project and then I dragged and droped the asWebBrowser control in my form which added the reference to these assemblies again from c:\windows\system32 folder which I have removed from the references.
Now when I compile it, I get compiler errors which are mentioned below:
error C2653: 'AxInterop' : is not a class or namespace name
error C2501: 'Testing::Form1::AxWebBrowser' : missing storage-class or type specifiers
error C2501: 'Testing::Form1::axWebBrowser2' : missing storage-class or type specifiers
All of these errors are pointing towards only one line of code in my form's header file which is:
private: AxInterop::SHDocVw::AxWebBrowser * axWebBrowser2;
All I want to do is, to load text,html,xml files from my hard drive to axWebBrowser control for display.
Please Help!!!!!
osAma
|
|
|
|
|
If you are getting an Interop error saying that the namespace does not exist, it's because Visual Studio .NET can not find the generated assembly.
Where is it? You can put it in your project directory, this is a default Visual Studio search location. You can also set the search path by right clicking on the project in the Solution Explorer and setting the path in the appropriate property page.
Read this from MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxurfVCDirectoriesProjectsOptionsDialogBox.asp[^]
You want to set the path for the reference files. You must select this from the dropdown menu (the default is the #include directory).
Also, Adam Nathan does exactly what you are doing in his book, ".NET and COM: The Complete Interoperability Guide"; he provides all the code and an very clear explanation about how and why you are doing what you are doing. If you are new to this kind of thing, I would recommend reading the book, it's excellent.
|
|
|
|
|
Thank you very much for such a great help!!!!
Cheers
|
|
|
|
|
Hai,
Friends,I want some one to tell me how to go about developing DataBase Applications Using Dialog forms with ADO techonology.
Thanking you in advance.
|
|
|
|
|
|
Hi everyone,
I'm developing a c++ multithread app create a thread in a separated class:
I've also used _beginthread in the main function of the program without any problems, here my code looks liks this:
_beginthread(StartTCPService,0, NULL );
In my second class (tmpClient) I tried to do the same with this code:
<br />
void ClientThread (void *socket)<br />
{<br />
SOCKET sd = (SOCKET) socket;<br />
}<br />
and to create a thread:
_beginthread(SocketClientThread,0, NULL);
But my compiler complains that:
error C2664: '_beginthread' : cannot convert parameter 1 from 'void (void *)' to 'void (__cdecl *)(void)'
I tried to convert the thread func to a static one, but with any luck.
What's wrong with this code, why can't I create a thread ?
Regards,
Niels Bergsma
Note: I'm developing with VisualStudio .Net 2003
|
|
|
|
|
This below is clasic decleration.
int test[] = { 0x00008000, // 32K
0x00010000, // 64K
0x00020000, // 128K
0x00040000, // 256K
0x00080000, // 512K
0x00100000, // 1024K
0x00200000, // 2048K
0x00400000, // 4096K
0x00800000 // 8192K
};
How can i declare in __gc clas, in way of using {}
Soory for my poor english
|
|
|
|
|
|
Hai, I want to use the Dialog Interface for my database applications.
According to the Teach Your Self C++ Book Chapter 15 "The Subject on Database Applications Using ADO. I need to manage the Classes on my Own if I choose Dialog instead of MDI or SDI.
I'am unable to add these classes especially the View Classes. It says I must add a resource file manually.
Just how do I do this.
I would appreciate if you started from the beggining to the end.
regards.
Lk.
|
|
|
|
|
The easist way is to start your application with an MDI or SDI. Since your code is dialog-based, you should not have many porting problem.
http://blog.joycode.com/jiangsheng
http://blog.csdn.net/jiangsheng
Command what is yours
Conquer what is not
---Kane
|
|
|
|
|
Hi,
I am able to wrapp all the class method in unmanaged c++ into managed c++ but i
could't able to wrapp Friend function. Please let me know if you have any idea.
Here is an example
Class UnManaged{
int i;
public:
UnManaged(int k){ i =k;}
friend int getInt(){return i};
friend bool operator < (Unmanaged *U1, Unmanaged *U2)
{return (U1->i <u2->i);}
}
How can wrapp These two function in my wrapper class called Mangaed.
public __gc class Managed {
Unmanaged __nogc *unmanagedObject
public:
Managed(){unManagedObject = new Unmanaged(10);
}
Thanks in Advance.
-Sudhakar
|
|
|
|
|
|
I have a database program. I am using accses databese with Microsoft.JET.4 Engine. Can i create a database with jet. If no, then i want to my own program create own database inplented in my project. How can i do this in "Less painful" way.
I hope you understand this, what i have to ask
|
|
|
|
|
hi Saksida Bojan!
The most unpainful way is to create XML files because .NET provides very comprehensive namespace for xml called System::Xml just use this and it will be even easier if you use serialization to deal with your XML files which can be found in System::Xml::Serialization. I have done it in VB and it worked fine for me, provided if you are not going to use very huge data processing.
Hope it helps.
osAma
|
|
|
|
|
I don't use xml file, but Access database throu Microsoft.Jet.4
|
|
|
|
|
You can easily create a Jet database using ADOX.
Here's an example in C#.
http://support.microsoft.com/kb/317881/EN-US/[^]
After you create the catalog you can add tables, then columns. I use this technique in one of my products.
Hope this helps.
-
Drew
|
|
|
|
|
Thanks. A lot. I'am changing entire core structer, so i don't have a time to test. When i finished then i will implent this structure.
|
|
|
|
|
Hi,
do any of you know how to open microsoft word in C++? i need to pass strings out to a template word document to fill in.
(john.parr@logicacmg.com)
I know the VB script method:
'Used to open word and populate CD label values in a word template'
Dim oWordApp
Dim oWordDoc
Set oWordApp = CreateObject("Word.Application")
If oWordApp Is Nothing Then
MsgBox "Couldn't start Word."
Else
oWordApp.visible =true
Set oDoc = oWordApp.Documents.Add("C:\cdtemplate.dot")
with oDoc
.bookmarks("mainTitle1").Range.text="HELLO"
.bookmarks("subTitle1").Range.text="TEST_DATA, PLAN_TEST - 393"
End If
|
|
|
|
|
This is the Visual C++ .NET forum.
The .NET way Interops the Word COM Dll, by converting it into a .NET assembly with TlbImp.exe and creating Runtime Callable Wrappers; (this makes it REALLY easy to manipulate the Word application object).
You probably want to ask this question at either the COM or Visual C++ forum.
|
|
|
|
|
Much thanks, I will ask in the said forum.
Thanks again
-John
|
|
|
|
|
I need to develop a system to monitor operations performed on files/folders.
Such as
1. open,
2. read,
3. write,
4. close,
5. copy,
6 rename,and
7. move
I have stumbled upon one solution.
Having a "File System Filter Driver" which monitors every atomic operation performed on the file system. But the information available out of the driver is too huge to classify into a single user operation.
For example
(*) IRP_MJ_WRITE is the Major function getting initiated when a user tries to write a file.
(*) However more than one IRP_MJ_WRITE happens for a single write.
(*) when user saves the document twice,it is difficult for me to group the IRP_MJ_WRITE's into TWO user writes.
Someone help me on how to proceed on this, or may be any other solution to this problem.
|
|
|
|
|
Google has plenty of hits, but it seems odd to me that you'd ask for something so complex, but want a complete source listing, rather than some references on how it works ?
Christian Graus - Microsoft MVP - C++
|
|
|
|