|
What is the generated exe file supposed to do? If you have source code written in Vb.Net or C# you can compile it during runtime and generate executable file. Here is an example: Compiling source file dynamically[^]
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
my code is in c++........
someone told me include that executable which you want to make to be created as resource and extract it at runtime...don't understand what is this....plz tell me....also if you knw how to compile at runtime in c++ then tell me...
there are 10 type of people in the world...
01 who understand binary.
10 who don't...
|
|
|
|
|
|
Hi,
I want to know if there is any event to know if the print button on the report viewer toolbar is clicked. I want to do some database updations only if the report is printed.
The alternative is to not use the toolbar button and do the printing on some button click on the form. But i dont want to do that.
Please reply if anyone know anything abt this.
-Abhijeet
|
|
|
|
|
If i send a file with a size about 4-6 kilobyte, the file is received on the other side, but if i send the file with file size about 32 r larger size, the client or the server on the other side does not receives it. Is there a good way to send large files through sockets using network stream ?
|
|
|
|
|
Did you look at the Read/Write methods of the NetworkStream class? You need to know how many bytes you wrote on the stream and read that back. It's simple like that.
|
|
|
|
|
Okay buddy, i have done it by making chunks of 4000 bytes of the whole file. Its easy and fast. Anyway, thanks a lot for your interest.
|
|
|
|
|
Hi all,
i have one problem , mine is windows application (c#.net),we are using backend msaccess ,what i want to tell is in my application one link is there i.e backup, how to write code for that , give me any idea plz
Thanks & Regards
sarp
sarp
|
|
|
|
|
Can you clarify on what exactly you need?
Vinay
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Look at using COM Interop to run a backup command. It's always easiest to record a macro in Access performing the required task, then convert to VBA, then look at the code and try to see how to achieve the same thing with the Access COM objects.
Pits fall into Chuck Norris.
|
|
|
|
|
I note when people who help get a 1, my 5 averages to 4.6 or so, meaning a lot of the 1 voters are new members.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you.
Pits fall into Chuck Norris.
|
|
|
|
|
I think Chris must have implemented a value system - excellent .
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It's been that way for ages. As the top poster, I know that I can always exert at least equal influence to any 1 vote I disagree with, and almost always quite a bit more.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i created a dll....that uses the function..
headerfile
#ifndef _DLL_H_
#define _DLL_H_
#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */
DLLIMPORT LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam);
#endif /* _DLL_H_ */
cpp file
/* Replace "dll.h" with the name of your header */
#include "key.h"
#include <windows.h>
DLLIMPORT LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
//some code here.....
}
BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
MessageBox( NULL,"Test working","cool",MB_OK | MB_ICONINFORMATION);
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
/* Returns TRUE on success, FALSE on failure */
return TRUE;
}
when im compiling this dll with Dev-C++ compiler..im getting error....
my compiler log is:
Compiler: Default compiler
Building Makefile: "D:\devcpp project\keylogger\testlogger\sysproc\Makefile.win"
Executing make...
make.exe -f "D:\devcpp project\keylogger\testlogger\sysproc\Makefile.win" all
g++.exe -c dllmain.cpp -o dllmain.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DBUILDING_DLL=1
In file included from dllmain.cpp:2:
key.h:10: error: `LRESULT' does not name a type
make.exe: *** [dllmain.o] Error 1
Execution terminated
can someone please help me what im doing wrong...what im able to understand is that it is not able to get the declaration for LRESULT......
how to correc that.....
thanx in advance...dudes
|
|
|
|
|
Member 4449040 wrote: can someone please help me what im doing wrong
ASking here instead of the c++ forum. Windows Forms is plainly nothing to do with dlls, but it's actually the framework for windows apps in .NET
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a infragistics Cardview enabled WinGrid with 2 column. First column is having the column headers and second column is having the value for the first column. I want to Preview the data in the grid. For that I've used UltraPrintPreviewDialog control (Infragistics Control). Preview is generating for the grid, But the column alignment is changing (It first displays all the data in the first column and then the data in the second column). I want preview with First column data and then second column data in each row. How to get like this..? Can any one help me pls....
|
|
|
|
|
Hi, I have a Windows Forms application that was working just fine. Then I moved 2 controls on the form a few pixels and changed the size of the form. After that I got the following errors:
error C2039: 'Dispose' : is not a member of 'System::ComponentModel::IContainer'
error C2039: 'CurrentThread' : is not a member of 'System::Threading::Thread'
and 2 more errors that were caused by the above. Does anyone have an idea how to fix this?
|
|
|
|
|
Cleaning the solution solved the problem.
|
|
|
|
|
Hi everyone.. does anyone have an idea how to add new properties to standard controls like textbox.
thanks.
Software Developer
|
|
|
|
|
Obviously, you need to derive a class from TextBox, and add your property and whatever you want it to do, to the derived class.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
pseudocode
public class NewTextBox :System.Windows.Forms.Textbox
{
public property NewProperty as string
{
get{;}
set{;}
}
}
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
you could also use the Tag property or read about observer pattern..
|
|
|
|
|
Hi there,
Can you please help me with this problem.
I am trying to send my custom string to cacls command to set the permission on a file on my desktop. where the name is saved in a textfile, and loaded into a label named: SendThisTextToCaclsAsFilename
Here is a code snippet of what I have:
String^ customString = "/c echo y| cacls \"%HOMEDRIVE%\\Documents and Settings\\"%USERNAME%\\" + SendThisTextToCaclsAsFilename->Text + " /D Everyone";<br />
Process::Start("cmd.exe",customString);
Now the part that does not seem to work is this:
%USERNAME%\\" + SendThisTextToCaclsAsFilename->Text + " /D Everyone";
The /D Everyone is not part of the command, I think.
I can't see the error message that the command is showing, because obviously it only flashes when applying the permissions.
How can I make this work?
Thank You in advance!!
|
|
|
|
|
Johan13 wrote: "/c echo y| cacls \"%HOMEDRIVE%\\Documents and Settings\\"%USERNAME%\\"
Your command line would look like this:
cmd /c echo y| cacls "%HOMEDRIVE%\Documents and Settings"%USERNAME%\someText /D Everyone
There's a problem just before %USERNAME%. I think that line should look more like:
String^ customString = "/c echo y| cacls \"%HOMEDRIVE%\\Documents and Settings\\%USERNAME%\\" + SendThisTextToCaclsAsFilename->Text + "\" /D Everyone";
|
|
|
|