|
I am trying to save files into a specific folder. However if the folder does not exist i get an error saving the file. Ok so i want to create the folder if it does not exist. I thought i would try File::Create("myfoldername") but it just creates a generic file. I looked up Folder::Create() but i am unsure how to use it, the examples only show VB,VBScript. Any suggestions?
|
|
|
|
|
It just takes a path, doesn't it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It's not working that way for me, although i thought it would.
|
|
|
|
|
Apparently, you need Directory::CreateDirectory.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi all,
I've got an managed c++ application that needs to display certain information in a graphical display. I've already got things started for the prototype using some basic images. I'm wondering if I could (fairly easily) create some more dynamic images using flash or some other. Basically I'm trying to gauge how easily, if at all possibe, it would be to have some flash images displaying real time data that my managed c++ code creates.
If anyone can point me in the right direction that is all I require.
Thanks in advance.
|
|
|
|
|
The way to display flash is to host IE as a control in a window. Personally, I think it's a bad idea, for starters, if your flash contains UI elements, I'm not sure how their events can be passed from your IE window into your code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a MDI app and I want to have a image in the client area. I can't use the Picture control because it hides the MDIchild Forms. I tried to send the Picture control to the back after I display the child form, but it disappears. Even when I use just the image background the image dose not display.
Can anyone help me with this? Thanks.....
|
|
|
|
|
________________
/|__________ /|
/ / / / |
/ / Form / / /
/ / Control /__ / /
/ / /
/ /_________/
/ /MDI Child
/ / Forms
/ /__________
/_______________/ /
| MDI Container | /
|_______________|/
As you can see from ascii picture MDI Container creates any control above any MDI Child forms.
I Have overriden Pant event, but it seems that MDI Background color paints on top of overriden event.
I Know it was posible with VB6. Maybe you have found a bug in framework.
|
|
|
|
|
I have a MDI. I created four Forms that I use as child Forms (not Forms
*form = new Forms() and then init the MDIParent property).
I'm haviing trouble trying to find out how I can access public variables of
the MDI parent from the child Forms.
The MainForm has the include .h files of all my Forms I am using, but when I
include the MainForm.h in the child Forms I get compiler errors in:
MainForm: ChildForm1 is undeclared....
ChildForm: missing ';' before '*' (referring to MainForm *parent)
How do I properly access my public variable in the parent? Thanks!...
|
|
|
|
|
|
Thanks for the link to those disscusions. I was able to solve my problem. This method allows me to use the MFC document view method. I use a __gc class as my ducument interface between my Main and child Forms. Cool!...
|
|
|
|
|
I can't seem to find any examples (or reference) for displaying images in a Column of a data grid without some sort of webcontrol.
This is for a simple non databased windows app..
Can someone point me in the right direction?
|
|
|
|
|
I seem to recall there are some examples for how to insert your own controls in a datagrid, but most online examples seem to focus on a combobox. Surely it would be simplicity itself to change one of those examples to put in a picture box ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I agree.. however I can only seem to dig up combobox examples that use a Web form instead of a standard windows form. :/
Got any specific links?
Thanks in advance!
|
|
|
|
|
|
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
|
|
|
|