|
|
executed vcvars32.bat at command prompt
still the problem exist.
|
|
|
|
|
what version of visual studio are you using ? (although I dont see why that would make too much difference if the environment was set up)
if you do a 'set' command in the command window, what does the path look like ?
'g'
|
|
|
|
|
I am using visual studio 2005
the result of set command
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\JosephTambi.Katta\Application Data
CachedData=\\BNGRDC-S-01006\JosephTambi.Katta$\cached
CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BNGIBM-D-9919
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=H:
HOMEPATH=\
HOMESHARE=\\BNGRDC-S-01006.asia-pac.shell.com\USERSR21$\JosephTambi.Katta\Home
IMSTATUS=\\bngrdc-s-01003.asia-pac.shell.com\IMSTATUS$
IT_CONFIG_PATH=C:\Program Files\Iona\Config
IT_IDLGEN_CONFIG_FILE=C:\Program Files\IONA\asp\6.3\etc\idlgen.cfg
IT_PRODUCT_DIR=C:\Program Files\IONA
JAVA_HOME=C:\Program Files\Java\j2re1.4.2_16
LOGONSERVER=\\BNGRDC-S-01000
MACH_TYPE=Developer
MSIPATH1=\\bngrdc-s-01003.asia-pac.shell.com\Dist$
MSIPATH2=C:\MSI
MSIPATH3=\\bngrdc-s-01003.asia-pac.shell.com\UFT$
NUMBER_OF_PROCESSORS=2
ORBIX_HOME=C:\Program Files\Iona
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\Program Files\IONA\asp\6.3\bin;C:\Program Files\IONA\bin;C:\Program Fi
s\Iona\bin;C:\Program Files\Iona\tools\jre\bin;C:\Program Files\Iona\COMet\bin
C:\Program Files\bin;C:\Program Files\tools\jre\bin;C:\Program Files\COMet\bin
C:\Oracle\8i\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Oracle\8.0\bin;C:\Or
le\8.0\jdk\bin;;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;;c:\abcd;C:\
ogram Files\Open Text\Livelink Explorer;C:\Program Files\Axalto\Access Client\
\;C:\Program Files\Schlumberger\Smart Cards and Terminals\Common Files\;C:\Pro
am Files\ActivCard\SecureLogin Single Sign-On\;C:\Program Files\Open Text\Live
nk Explorer\;C:\Program Files\QuickTime\QTSystem\;C:\Oracle\10g\InstantClient;
\Program Files\Windows Imaging\;C:\Program Files\1E\SMSNomad\;C:\Program Files
ySQL\MySQL Server 5.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0401
ProgramFiles=C:\Program Files
PROMPT=$P$G
QOSDISABLE=1
QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
RSMS_NAME=eps.asia-pac.shell.com
SAPLOGON_INI_FILE=C:\WINNT\Saplogon.ini
SQLPATH=C:\Oracle\10g\InstantClient
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\JOSEPH~1.KAT\LOCALS~1\Temp
TMP=C:\DOCUME~1\JOSEPH~1.KAT\LOCALS~1\Temp
TNSNAMES=C:\Oracle\8i\network\ADMIN\
TNS_ADMIN=C:\Oracle\8i\network\ADMIN
UATDATA=C:\WINNT\system32\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
USERDNSDOMAIN=asia-pac.shell.com
USERDOMAIN=ASIA-PAC
USERNAME=JosephTambi.Katta
USERPROFILE=C:\Documents and Settings\JTK
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
windir=C:\WINNT
C:\PROGRA~1\IONA\asp\6.3\demos\corba\orb\simple>
pls advice
|
|
|
|
|
are you sure you ran vcvars32 (or the equivalent for VS2005) in THIS session ? .. it doesnt look like the path to the VS2005 tools is set .. usually in the PATH you'd expect some microsoft vs directories - if you do a search using explorer for nmake (the original version, not the one you copied), you should see this location in the PATH, and its not there ...
'g'
|
|
|
|
|
hi I use mingw program to recognize g++
and I do all the set up but when I want to
use g++
WHAT I see is"g++ is not recognized as an enternal or external command operable program or file.."
please help me
|
|
|
|
|
not sure if I can help with that - Orbix Comet is only buildable on VC6, on Windows at least - Other Windows Orbix versions (eg 6.3.4) appear to be buildable with later versions - from their website ...
"Orbix COMet requirements
Orbix COMet is only supported with Microsoft Visual C++ 6.0. Orbix 6.3.4 also supports Visual C++ 7.1, Visual C++ 8.0, and Visual C++ 9.0. However, Orbix COMet does not support these newer compiler versions, and works with Visual C++ 6.0 only. "
.. plus I have sfa experience with mingw
If you're trying to complie Orbix 6.3.4 why dont you download VS 2008 Express or such ?
sorry
'g'
|
|
|
|
|
|
CString str;
GetDlgItemText(IDC_DIR0,str);
if(CreateDirectory(str,NULL))
{
AfxMessageBox("Success");
}
else
{
AfxMessageBox("Failed");
}
No mater what directory i set as the value of str,
the program alerts "Failed".
|
|
|
|
|
Did you call GetLastError() to check why it fails?
Most of the VISTA problems are solved by Elevated Administrator privileges.
Dig in this forum you will find many similar questions..
These articles may help you
Vista UAC Guide[^]
Vista Elevator[^]
[EDIT]
Here is the search result for vista problems that were asked in this forum
Vista Issues[^]
[/EDIT]
I hope it helps.
Regards,
Sandip.
modified on Friday, October 31, 2008 3:36 AM
|
|
|
|
|
You havent the rights to create directories where you like.
Consult the links in the first answer.
Greetings from Germany
|
|
|
|
|
Without knowing what directories you've tried to create, we can only guess at the cause.
What does GetLastError return when CreateDirectory fails?
|
|
|
|
|
Hi,
I am trying to convert a dll which was earlier built in visual studio 6 to VS 2005. I am getting the following error:-
1>c1xx : error C3174: module attribute was not specified
1>LINK : fatal error LNK1250: failed to merge IDL content
if i change the project settings to Static library, it complies properly.
But i want DLL itself in VS2005.
can anyone please help me?
-Arps
|
|
|
|
|
Hi all,
I have made a project in VC6 and now i want to convert my project in VC2008..
What i have done is i have simply opened its dsp file in VC2008 enviornment. It asked do you want to convert all the files i pressed yes.
Now its giving a compile time error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CTextProgressCtrl::* )(UINT,LPCTSTR)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
which is a message map function.
How can i remove this???
Thanks in advance
|
|
|
|
|
I guess you have to change the prototype of the offending method to match
LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)
i.e. Change the last argument type (of the offending method) from LPCTSTR to LPARAM (and then make an explicit cast inside the function).
Please post the declaration of the offending method.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I can't use
int16_t
uint32_t
int64_t
...
Don't VC9 support C99?
|
|
|
|
|
I have a function in my program that processes grades. The function is:
void PrintArray (const int grades[])<br />
{<br />
cout << "The scores are: " << endl << endl;<br />
for(int i = 0; i <= MAX_GRADES; i++)<br />
cout << setw(4) << grades[i] << endl;<br />
}
What I want it to do, is print out the variable 10 per line instead of straight up and down.
I also want to have a const int MAX_WIDTH = 10 so that the function knows when to insert in a newline.
Any help would be greatly appreciated. Let me know if I'm missing information you need to help. Thanks in advance.
|
|
|
|
|
I am not sure if i understood problem but
do you want something like this
void PrintArray (const int grades[])
{
const int MAX_WIDTH = 10;
cout << "The scores are: " << endl << endl;
for(int i = 0; i <= MAX_GRADES; i++)
{
cout << setw(4) << grades[i];
if((i+1)%MAX_WIDTH==0) cout<<endl;
}
}
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
you beat me - and you gave him the answer - I was going to make him work a bit for it ....
'g'
|
|
|
|
|
not sure what the issue is - you're most of the way there.
Assuming you define MAX_WIDTH to be 10, you could look at replacing the
cout << setw(4) << grades[i] << endl;
with something like :-
cout << setw(4) << grades[i];
then you need to check if i is an even multiple of MAX_WIDTH, and print
cout << endl;
if that is true, inside the for loop of course - hint, look at the '%' operator for the modulus function
That should be enough - see what you can do ..
'g'
|
|
|
|
|
Garth, this for the suggestion. I was wondering if you had an e-mail or AOL instant messenger, or ever facebook I could contact you through.
|
|
|
|
|
Hi,
I have a newbie question I hope somebody can help me with.
I am writing a custom stl container, basically a specialized kind of tree. The container needs to implement a variety of iterator options (preorder traversal, postorder traversal, breadth-first traversal, depth-first traversal, etc). The easiest way to do this appears to be to write a number of distinct iterators that traverse the tree in different ways.
I see from the standard stl containers that they always typedef "iterator" and "const_iterator" (plus reverse versions). Since I will have more than one kind of iterator, I am not sure how my container can be made stl compliant.
So my question is, is it a strict requirement of an stl container that it exposes these standard iterator typdefs? If I typedef "iterator1", "iterator2", etc., will the stl algorithms still work without any unforeseen problems, or are there specific requirements for the presence of "iterator" and "const_iterator"?
I hope this makes sense, please let me know if further clarification is needed.
Thanks for any advice and help! I really appreciate it.
Mellib
|
|
|
|
|
What's your preferred choice of tool for automating your C++/MFC projects? Nant/Vcbuild etc?
We currently dont do automated daily builds: something we're intending to start.
Looking for ideas and suggestions.
thanks!
|
|
|
|
|
CruiseControl.NET (cc.net) is nice (and cheap)
|
|
|
|
|
Before I say anything, I've done a lot of searches, and haven't had any luck yet. Also, I'm a beginner, so most like I'm not using the correct terms to describe what I want, so please excuse me. Thank you in Advance
Lets say you have two monitors. You are using firefox and you want to just drag the firefox screen to the second monitor. Now instead of two monitors, you have two users remotely logged in to the same computer. User A wants to give you user B program 1 in its exact state. How do you do this?
This is what I am doing now:
Person A remotely log in as user A, and starts program 1. Person A ran into a problem with program 1 and requests help from person B. Person A logs off, so person B can remotely log on to user A, where person B can debug program 1 in the exact state where person A had it.
This is what I want to do:
Person A logs in as user A, and starts program 1. Person A ran into a problem with program 1 and requests help from person B. Person A sends the UI Window to person B who is remotely logged on as user B on the same computer.
I don't know if this is even possible or if it makes sense.
|
|
|
|