|
How i can close a window, from a 1st window, i try for this.dispose();, and it not work.
How i can show a window from a window?i use WinFormsApplications.
Thank you
|
|
|
|
|
Close();
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes it work;thank you.
how i can show a window from an other window?
i try for this->show(?), i don't know a parametr's?
thank you.
|
|
|
|
|
You can add given window's header file ( window which is gonna be shown) to your main window unit and use a name of window's class you want to show for example:
#include "MyForm.h"<br />
.<br />
.<br />
.<br />
MyForm ^Frm = gcnew MyForm();
.<br />
.<br />
.<br />
Frm->Show(this);
|
|
|
|
|
i want to upload a bitmap or jpeg picture in c
but i do not know how
|
|
|
|
|
wrote: in c
Wrong forum, You can try VC++ or Graphics forum.
|
|
|
|
|
I use Netica.c and i would use it in Windows Forms Application, in 1st i do {Proprities of project>C/C++>Precompiled Headers>not using precompiled Headers. In MFC that's all and it work at 100%.
But in Windows Forms Application there are error: Command line error D8045 : cannot compile C file '.\NeticaEx.c' with the /clr option
pleas hel me to resolve this problem,
Thank you very mutch.
|
|
|
|
|
When i choose "select compile as C++ code" there are 8 errors, one of theme error C2440: 'initializing' : cannot convert from 'void *' to 'state_bn *', this Netica.c contain a founctions who Netica.h use theme.
help me to resolve this pb; thank you.
|
|
|
|
|
abbd wrote: 'void *' to 'state_bn *',
And how the causing this error looks like ?
Possible it requires explicit cast.
|
|
|
|
|
You probably need to ask people who know what netica.c is, and either way, you probably need to post the code that is blowing up. And, once you are asking about compiling straight C, you need to ask in the right forum.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
That's because NULL is defined in afx.h, an MFC header file.
You can add it to your source, header, or pre-compiled header file(s):
#if !defined(NULL)
#define NULL 0
#endif
*edit* It's defined in many places in CRT header files as well.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Thank you very mutch
|
|
|
|
|
hi everyone,,,
i am a new user of this site and to telling the truth i dont know how to reach the thing i want,
the only thing i know is , i really need some help.i have to finish my semester project put i dont
know how to do it,,I WILL BE SO GLAD IF SOMEONE HELPS ME...
THE ISSUE IS "FINDING THE DISTANCE BETWEEN TO POINTS ON A GRAPH"...
I AM SORRY FOR MY BAD ENGLISH ,,,PLEASE SHOW ME THE WAY ,I HAVE TO DO THIS ,,,THANKS ...
IF YOU SEND YOUR COMMENDS TO ahhmeet123456@yahoo.com i will be very glad...
----
|
|
|
|
|
the code im about to put down.. seems to run through without errors... however. when i cout out the final conversion i get wierd numbers...
but basically what i have here is create process.. im using a dummy.exe to create a txt file so i know if it works right away...
if(first4=="EXEC"){
LPWSTR szCmdline=(LPWSTR)cl.c_str();
STARTUPINFO StartupInfo;
PROCESS_INFORMATION ProcessInformation;
HANDLE hPipeRead, hpRead;
HANDLE hPipeWrite;
SECURITY_ATTRIBUTES sa;
memset(&ProcessInformation,0,sizeof(ProcessInformation));
memset(&sa,0,sizeof(sa));
sa.nLength=sizeof(sa);
sa.bInheritHandle = TRUE;
CreatePipe(&hPipeRead,&hPipeWrite,&sa,0);
memset(&StartupInfo,0,sizeof(StartupInfo));
cout << "pipes and memset";
GetStartupInfo(&StartupInfo);
StartupInfo.hStdOutput = hPipeWrite;
StartupInfo.hStdInput = hPipeRead;
StartupInfo.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
StartupInfo.wShowWindow = SW_HIDE;
cout << "StartupInfo Read\n";
CreateProcess(NULL, szCmdline, NULL, NULL, TRUE, 0, NULL, NULL, &StartupInfo, &ProcessInformation);
cout << szCmdline;
CloseHandle( hPipeWrite );
Sleep(100); DWORD stuff; char buff[1000]; bool firstsend; int offset = 0, bRecv;
PeekNamedPipe(hPipeRead, NULL, 0, NULL, &stuff, NULL);
if(stuff != 0) {
ZeroMemory(buff, sizeof(buff));
firstsend = true;
do {
ReadFile(hPipeRead, buff, 1000, &stuff, NULL);
if(firstsend) { send(usersock, buff + offset, strlen(buff) - offset, 0); firstsend = false; }
else send(usersock, buff, strlen(buff), 0);
} while(stuff == 1000);
} else { char ccc[128]="NoReply program run"; send(usersock, ccc, strlen(ccc), 0); }
}
//
// This is for an ftp server and webserver i have to get this create process functioning and outputing
// the dos screen info through a socket which i already have setup here and should work.... but errors
// out when if statement is called... ive been playing wiht it for about 2hr... plz help
// im using Visual Studio 2005 C++ and im pretty sure this is CLR
-- modified at 7:22 Monday 5th March, 2007
|
|
|
|
|
|
Hi
How to convert DRM protected audio files to unprotected audio files. I have DRM protected audio files which are purchased from iTunes(i.e., from Apple website),i want to convert those DRM protected files to unprotected MPEG or AVI or WMV format files.
Bala
|
|
|
|
|
Please do not cross post. Also, DRM is there for a reason, don't try to violate the licenses you bought things under.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi Graus,
Converting DRM protected audio files to unprotected audio files is not a illegal thing. So please give some guidance to me.
How can u convert code of FORTRAN to C++ with out knowing the FORTRAN syntax
Regards,
Balu.
Bala
|
|
|
|
|
Hello,
After several problems with the link between a windows form and Fortran, I decided to install the Visual C++ 2005 Express Edition SP1, these problem were solved but now appear a new one. As I install Visual C++ 2005 Express Edition SP1 I have in my computer the folder
..\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700 where the aplication get the dll msvcm80.dll,msvcp80.dll and msvcr80.dll
So I have a "circular" problem,
If I don't install the Visual C++ 2005 Express Edition SP1, I can't link with fortran, but If I install it and the conexion begins to work, nobody without the Visual C++ 2005 Express Edition SP1 (So without .NET 2005) can run the application, because there is no way to install these new versions of the dlls without installing the service pack.
There is any redistributable package that microsoft is going to release? or there is anyway to install only the dlls that I need?
Thanks in advance
|
|
|
|
|
|
Hello,
The problem is that if I
Build my application with the .NET 2005 with the SP1 installed, this application will not run in a computer without this SP1 installed, I have try this in a computer with VC++ 2005 redistributable package (x86), and it doesn't work, appear: Error code 14001
So I am trying to find a Redistributable package with the new versions in. Because I have add manually this dll (msvcm80.dll,msvcp80.dll and msvcr80.dll) in his new versions that are located at
..\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700
But if the computer where I want to run the application has not the .NET 2005 installed (so the SP1 for sure can't be installed), this will take the dll from the folder
..\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd which are the dll that VC++ 2005 redistributable package (x86) install inyour computer.
I am sure that something is write down in the register which point to one or another.
Regards
|
|
|
|
|
I'm not sure it's a good idea to rely on a certain folder to find the DLLs. This is the kind
of thing that leads to the whole "DLL Hell" thing.
I still suggest studying the deployment link I posted before. You may need to deploy the DLLs
to your own place where it is easier to access.
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Ok, it is true it is the real hell........
I think I'm going to wait for a new redistributable package of .NET 2005.....
Thanks
|
|
|
|
|
Can I send text from a BackgroundWorker::DoWork() to a listbox in the main thread ? I want to keep the listbox in the main thread up to date with what's going on in BackgroundWorker::DoWork(). The BackgroundWorker::ProgressChanged() hasn't the parameter I need ( String^ ) and if I send the text straight to the listbox, an exception is raised. If not, is there another way to do it ?
|
|
|
|
|
As a general rule you can only touch GUI objects from the thread that created them. Use BeginInvoke() method on the form to transfer the call to the GUI thread and update the listbox from there. Once in the GUI thread check for IsDisposed before updating the listbox as its possible for the form to be destroyed beteen you calling BeginInvoke and the actual function being called by the GUI thread
System.IO.Path.IsPathRooted() does not behave as I would expect
|
|
|
|
|