|
Thanks Pj I got that one fixed...... :-P
LOL Ders Jus 1 warning now.......
cpp(51) : warning C4700: local variable 'accumulatedValue' used without having been initialized
I'm Copyin the code from a book called C++ For Dummies.
(:-P Perfect for ppl like me )
Do Unot Others As U Would Have Done TO U
|
|
|
|
|
Psych0hans wrote:
warning C4700: local variable 'accumulatedValue' used without having been initialized
You didn't initialise it. Should do something like this:
int iValue = 0;
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Psych0hans wrote:
I'm Copyin the code from a book called C++ For Dummies.
(:-P Perfect for ppl like me :doh
Try using:
while( VS::Compiler::HasOutput() )
VS::Compiler >> Brain;
Sorry if I insult you, but it seems that you just do something without using your head. You just post your code and the compiler errors and wait for a solution. This is not a good habit of a starting programmer!
Please, for your own sake, try to fix the errors first by yourself, instead of posting compiler output and waiting for results.. You are not a manager!
One last thing, try and use normal english instead of sms / IM language, which is not very readable...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
One last thing, try and use normal english instead of sms / IM language, which is not very readable...
Agreed. I hate trying to read that crap. Some posts I do not even respond to for that reason alone. The amount of help a person gets from me is inversely proportional to how much effort, including reading the post, I have to exert.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
find this line in your code
int accumulatedValue; and change it
int accumulatedValue = 0;
the warning should be gone
|
|
|
|
|
Thanks a Lot Dude... That Solved My Problem 100%
U're
|
|
|
|
|
hi
I am having three arrays where 1. EntryId array 2.Subject array and 3. Time array. the elements of the array maps to the corresponding elemnts of the other two arrays.
I mean fr eg.
if entry ID is 2 it should be mapped with subject array of 2nd element and time array of 2nd element.
I want to sort it time was.
cheers
jhon
|
|
|
|
|
Maps would be better option here.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
|
how to program to update the password policy of the local security policy?
for example: to set the length of the user password not less 6 .
|
|
|
|
|
How to convert %SystemRoot% to a directory (such as, C:\Windows or C:\WinNT)
Thanks again for any help
|
|
|
|
|
I found the answer, please use this function: ExpandEnvironmentStrings.
Cheers
|
|
|
|
|
i have the idea how to connect with ODBC . But when i move to the record pointer it is pointing to a single record . it cannot mone prev and next . what will be my mistake
|
|
|
|
|
Anonymous wrote:
what will be my mistake
My crystal ball is broken. Without a code snippet showing exactly what you are doing, it's hard to say.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hello!
I've been trying to use CHtmlView class in my project.
Everything was OK.
The only problem is that I can't use ctrl+c, ctrl+v, delete,.... in the HTML view object.
I searched all the internet site, but no solution.
I tried some samples in this site, which using CHtmlView or IWebBrowser.
The result is same, shortcut keys are nowhere.
The only exception is the sample which I got from MSDN sample(mfcie).
Thanks.
|
|
|
|
|
|
Thanks for your help!
I learned many things about ActiveX controls with these days work and your advice.
I made my program work with accelarator keys in web-browser control.
The only problem is that ctrl-c, ctrl-x don't work until now.
Tab, ctrl-v, delete keys work.
Maybe it's my homework.
Thanks again.
|
|
|
|
|
Hi Master,
I need to get the environment Temporary Path (TMP/TEMP). I look at the API function and it gaves me two options:
1. using GetEnvironmentVariable(...)
2. using GetTempPath(...)
However, both of this function will return the TMP/TEMP value of User Variables instead of System Variables.
How do I retrieve both User Variables and System Variables TEMP value?
Thanks for any help in advance...
Cheers
PS. To get the environment variables:
- Right Click on "My Computer"
- Click on "Advanced" Tab
- Click on "Environment Variable"
- You will see that TMP/TEMP belong to two sections (User Variables and System Variables).
|
|
|
|
|
RYU^^ wrote:
However, both of this function will return the TMP/TEMP value of User Variables instead of System Variables.
If you have similar environment variable defined as system and user then the API would first get User variable.
In order to access system variables remove any duplicate entries existing in your user section.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Hi Nilesh,
Thanks for the prompt reply
The TEMP/TMP System Variables is required when the application is running from the WEB. (for example, ASP code calling Server.CreateObject(...) and the object will use StgCreateDocFile(...) that will put the temporary file into System Variables)
The TEMP/TMP User Variables is required when the application running under local machine that does NOT have administrator privilege. Therefore, both of them are required.
Thanks
Please note:
System Variables normally write the file into C:\Windows\Temp or C:\WinNT\Temp. Without administrator privilege, the application will fails when attempt to create the temporary file
|
|
|
|
|
In that case I doubt if you would be able to do much about it.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Both come from the registry. GetEnvironmentVariable() reads from the process' environment block, which has already queried the registry. Check out HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment and HKEY_CURRENT_USER\Environment.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
system A am on a LAN. is it possible for system A to know the MAC address of all systems on the LAN. if so, how?
|
|
|
|
|
Check this[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Depends on what you have - hardcore solution is to ping every machine on the LAN (for that you need to have IP addresses of the computers on the LAN) and if you'll get packet on the ethernet level you can get the MAC address from here (if there's no router or something between you and the machine, on LAN I assume there's nothing)
But if you have some access to the computers (uid and password) I would try to use the WMI and the Win32_NetworkAdapterConfiguration ManagementClass.
|
|
|
|