|
You dirty scoundrel!
VB programming! Shame! Shame! Shame!
PS: And how much money do you want for not telling that I sometimes use it in my code too?
|
|
|
|
|
|
Hey!
I can't knock it. After all, some of my current worst programming practices were gained by coding in VB!
I see the new baby's given you some free time for the CP.
I Dream of Absolute Zero
|
|
|
|
|
Yes... I have been hanging about lately... If I ask a question there, I kinda feel obliged to give back. And I try not to get to worked up by those right wings morons in the soapbox
You ok? how is bummer up? Drinks soon?
|
|
|
|
|
BadJerry wrote:
VB programming!
Don't blame me for givig up MFC for .NET and C#...
_____________________________
...and justice for all
APe
|
|
|
|
|
And if you want to display a progress bar while executing your process, see this[^] article.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
The correct way to do this is to load the other application in a secondary thread. Doing this allows the primary thread to process paint messages.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I'm using VS.NET 2003 to create my installation. I wish to ask for the type of installation required using a 3 radio button screen. The property for the radio buttons is called BUTTON3.
I then wish to install shortcuts accordingly. As shortcuts don't have a condition property I have created three different folders all called "phone". I then set the condition property for each folder to be BUTTON3=1, BUTTON3=2 etc.
The problem I am having is that whatever radio button I choose, I always seem to get the BUTTON3=2 condition installed. Does anyone have any ideas why please? I have tried this on XP, 2000 and 98SE.
TIA
Jerry
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Hi,
I'm new to Visual C++!
Could some of you tell me what is the function of
int WINAPI WinMain(HINSTANCE hThisInst, HINSTANCE hPrevInst,
LPSTR lpszArgs, int nWinMode)
Thanks!
|
|
|
|
|
it is the entry point (as main() in C or in Console-Mode programs) of you windowed program. if you program directly into WinMain(), you use Win32 API...
otherwise, you can have a look at MFC classes and functionnalities (more easy to use i find...)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
|
|
I have a camera, i use VC++ to programming control it. Ex: recognize, video, capture.
What i use class ?
I love I3.DVR International Inc.
Best Regards
Tran Tien Dung, Binh Dinh, Vietnam
|
|
|
|
|
|
Also if it is an IP camera, one that plugs into a network port, it will generally have a JPEG file that you can download to form each frame. To download a file from the camera use CWebGrab[^] available on this web site.
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
I have a problem, very need solving !
That is : I need get hard drive serial number, and encoding into binary number, and save into my application, all to best my application copyright.
Let help me!
I use Visual C++.
I love I3.DVR International Inc.
Best Regards
Tran Tien Dung, Binh Dinh, Vietnam
|
|
|
|
|
To get the HDD id
TCHAR lpVolumeNameBuffer[256];
DWORD VolumeSerialNumber;
DWORD MaximumComponentLength;
DWORD FileSystemFlags;
TCHAR lpFileSystemNameBuffer[256];
if ( GetVolumeInformation(
_T("C:\\"),
lpVolumeNameBuffer,
255,
&VolumeSerialNumber,
&MaximumComponentLength,
&FileSystemFlags,
lpFileSystemNameBuffer,
255
) )
{
return VolumeSerialNumber;
}
else
return 0;
Hope this helps...
|
|
|
|
|
Hi,
Can somebody tell me about writing custom actions in IDE8.0 .
any article on it would help ............
thanks
U get wht u Give
|
|
|
|
|
Hello !
I have a little question regarding the >> operator of the ifstream. I overloaded the operator so that it will support streaming of my own classes but I want to secure this process by throwing an exception when an error occured during reading the file. For example, if we try to read when the end of the file is reached (so no more data to read), what happen with the ifstream class ? Does it throw an exception ? Or do I need to check for that before each read operation ? (This will be quite big because the classes I want to save are quite big)...
Any help greatly appreciated
|
|
|
|
|
<br />
char idata[256];<br />
ifstream a_file ( "data/text.dat" );<br />
while (! a_file.eof() )<br />
{<br />
a_file.getline(idata,256);<br />
cout<< idata <<endl;<br />
}<br />
At the end of the file it stops reading and continues with ur code... is that what u mean?
/* Just a Human Trying to Live in a Computers World. */
|
|
|
|
|
No, I'm not using getline but operator>>. In fact, the operator is redifined to accept my own classes, something loke that:
ifstream& operator>>(ifstream& i_stream,CMyClass MyClass)
{
i_stream>>MyClass.Data1;
i_stream>>MyClass.Data2;
....
....
return i_stream;
}
But inside this function, I want to throw an exception when there is an error (for example end of file). So, what happens when i_stream>> is called and the stream is at the end of the file ? Is an exception thrown or do I need to check the errors myself each time (quite a lot of code 'cause a lot of data inside CMyClass) ? Or maybe I can do it just once at the end of the function, is that a valid solution ?
|
|
|
|
|
end of file is not an error.
and getline() raises eof() the same operator>>() does because it is the base class that manages it.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Yes I know that end of file is not an error. But for me it should be an error if it happen before the complete class has been read . It means that I try to load data from a file which is probably corrupted so I need to throw an exception. When is this flag raised by the way ? When the last byte of data is read or when you read past the last byte of data ? And what happens if you continue to read data even if the eof flag has been raised ?
A solution could be to read everything and just check at the end of the function if the complete class has been read...
Thanks for the suggestions
|
|
|
|
|
Why are you doing it that way?...
The Golden Rule in Programming: Keep It Simple Stupid.
No offense, but its true...
The code i jus posted will do everything ur doing, and make ur life alot easier...
/* Just a Human Trying to Live in a Computers World. */
|
|
|
|