|
hi..
i am trying to install htk 3.2
but it is giving an error
cl not recognized as an internal or external command
..
i hv installd microsoft visual studio 2003 .net 2003
|
|
|
|
|
I would guess that the Visual Studio environment variables were not registered correctly.
Find the vcvars32.bat file in the Common7/Tools directory of VS03 and execute that in your command prompt window and it should set the variables for you.
When you find that batch file you can set up a shortcut to a command prompt that will load the batch file automatically. You do this by setting the shortcut's target to something like :
%windir%\system32\cmd.exe /k vcvars32.bat
but you have to set the full path to the batch file or move it somewhere that you can access easily.
|
|
|
|
|
hi.
i ran vcvars 32 from command prompt but now it is giving an error as follows:-
C:\pri_nij_new\htk\HTKLib>nmake /f htk_htklib_nt.mkf all
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
cl /nologo /c /ML /W0 /GX /O2 /G5 /Ob2 /D "NDEBUG" /D "WIN32" /D "_WINDO
WS" /I "." /D "WIN32_AUDIO" /D ARCH=\"WIN32\" HShell.c
HShell.c
c:\pri_nij_new\htk\HTKLib\HShell.h(48) : fatal error C1083: Cannot open include
file: 'sys/time.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
C:\pri_nij_new\htk\HTKLib>
|
|
|
|
|
The compiler can't find a "system" include file which usually means that the environment variables are not set right.
Open a command prompt and run vcvars32.bat. From this SAME command prompt type set and see what the INCLUDE variable is set to. You need to be able to find the time.h file in the sys subdirectory of one of the directories listed in the INCLUDE variable.
At this point you need to start learning how to debug your environment. I have listed the basic steps to do this so best of luck with it.
|
|
|
|
|
i ran vcvars again from command prompt and on typing set it is giving me a big output as follows
actually i searched the outputs below having "include" but there is no system file......
In microsoft visual studio .net 2003\vc7\include it has sys folder but it is not having sys/time.h
it contains timeb.h and utime.h....
:-
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=XP10
ComSpec=C:\WINDOWS\system32\cmd.exe
DEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopPro
tection
DevEnvDir=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
FP_NO_HOST_CHECK=NO
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1
FrameworkVersion=v1.1.4322
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE;C:
\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE;C:\Program Files\Mi
crosoft Visual Studio .NET 2003\VC7\PlatformSDK\include\prerelease;C:\Program Fi
les\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include;C:\Program Files\M
icrosoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program Files\Microsoft Vis
ual Studio .NET 2003\VC7\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio
.NET 2003\VC7\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\Pl
atformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v
1.1\include;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\INCLUD
E;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE;C:\Program File
s\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include\prerelease;C:\Progra
m Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include;C:\Program Fil
es\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program Files\Microsoft
Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual St
udio .NET 2003\VC7\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC
7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2
003\VC7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\S
DK\v1.1\include;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\IN
CLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE;C:\Program
Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include\prerelease;C:\Pr
ogram Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include;C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program Files\Micro
soft Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visua
l Studio .NET 2003\VC7\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 200
3\VC7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .N
ET 2003\VC7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 20
03\SDK\v1.1\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\
include\
JSERV=D:\oracle\ora90/Apache/Jserv/conf
LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;C:\Program
Files\Microsoft Visual Studio .NET 2003\VC7\LIB;C:\Program Files\Microsoft Visu
al Studio .NET 2003\VC7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Vi
sual Studio .NET 2003\VC7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Stud
io .NET 2003\SDK\v1.1\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7
\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB;C:\Progra
m Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\prerelease;C:\Prog
ram Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib;C:\Program Files
\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;C:\Program Files\Microsoft Visua
l Studio .NET 2003\VC7\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\LIB;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\
lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSD
K\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;C:\Program
Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;C:\Program Files\Microso
ft Visual Studio .NET 2003\VC7\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .N
ET 2003\VC7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\S
DK\v1.1\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;C:
\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB;C:\Program Files\Micros
oft Visual Studio .NET 2003\VC7\PlatformSDK\lib\prerelease;C:\Program Files\Micr
osoft Visual Studio .NET 2003\VC7\PlatformSDK\lib;C:\Program Files\Microsoft Vis
ual Studio .NET 2003\SDK\v1.1\lib;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB;C
:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\prerelease
;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib;C:\Progr
am Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;C:\Program Files\Microso
ft Visual Studio .NET 2003\SDK\v1.1\Lib\
LOGONSERVER=\\XP10
MSVCDir=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7
NUMBER_OF_PROCESSORS=1
OLAP_HOME=D:\oracle\ora90\olap
OS=Windows_NT
Path=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:\Program F
iles\Microsoft Visual Studio .NET 2003\VC7\BIN;C:\Program Files\Microsoft Visual
Studio .NET 2003\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET 20
03\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 20
03\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1
\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Program Files\Microsoft Vis
ual Studio .NET 2003\Common7\IDE;C:\Program Files\Microsoft Visual Studio .NET 2
003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools;C:\
Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\
Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Fil
es\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Frame
work\v1.1.4322;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:
\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;C:\Program Files\Micros
oft Visual Studio .NET 2003\Common7\Tools;C:\Program Files\Microsoft Visual Stud
io .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Stud
io .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 200
3\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Program Files\Mic
rosoft Visual Studio .NET 2003\Common7\IDE;C:\Program Files\Microsoft Visual Stu
dio .NET 2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\Tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prer
elease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\P
rogram Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft
.NET\Framework\v1.1.4322;C:\Program Files\Microsoft Visual Studio .NET 2003\Comm
on7\IDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;C:\Program Fi
les\Microsoft Visual Studio .NET 2003\Common7\Tools;C:\Program Files\Microsoft V
isual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft V
isual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studi
o .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:\Program Files\Microsoft
Visual Studio .NET 2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET 20
03\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tool
s\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tool
s\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS
\Microsoft.NET\Framework\v1.1.4322;D:\oracle\ora90\bin;D:\oracle\ora90\Apache\Pe
rl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\syst
em32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ZipGenius 6\;C:\Progra
m Files\proeWildfire 4.0\bin;C:\Program Files\proeWildfire 4.0\mech\bin;C:\MATLA
B701\bin\win32;;;;;;;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0409
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
|
|
|
|
|
hi...
i have checked the include folder in vc7 folder of microsoft visual studio .net 2003 . it has sys folder but it is not having time.h.
also in visual studio versions 2005 and 2008 i have checked the same...
during installation of htk..
after running vcvars32 when i write nmake command it gives an error as:-
sys/time.h not found...
|
|
|
|
|
Have you tried to find out where it is ?
In VS 2003 time.h is not in the sys directory.
|
|
|
|
|
actually in the include folder there is one time.h but when we copy it to the sys folder of include it gives an error as:-
tv_sec and tv_usec should be of struct or unoin type...
and the sys folder has timeb.h and timeu.h
on renaming dem it gives the same error...
PLEASE also read the reply of mine above i gave the complete response of set command that u suggestd to perform.
|
|
|
|
|
create a regular dll(static link) in MFC. Add a dialog and export this dialog rom dll in below dll function function
__declspec(dllexport) void ExportDialog()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
dialogclass obj;
obj.DoModal();
}
When i call this dll function in a MFC exe(dialog base application) it displays the dialog.
But if i insert an activex control on dialog say calender,web browser etc and call dll function ExportDialog() in mfc exe then dialog box does not display.
I have used AfxEnableControlContainer in initinstance of application class in regular dll but still dialog is not display
what should i do to display dialog
My mfc exe is statically link. if i build extension dll and call its function which export dialog box then program is crash
please suggest
|
|
|
|
|
Hi,
Im having a web application.It has a edit control.Using a service, i will continuously watch a file for some content, then i will post that content into the edit control. How can i get the handle of edit control in the web application? Is it possible?
Thanks,
|
|
|
|
|
Controls in a webpage do not have window handle.
A webpage can have java script functions to update the controls in it. See javaScript calls from C++.
http://www.codeguru.com/cpp/i-n/ieprogram/article.php/c4399
Also, if you want to write some files to system from the webpage, you need to host an activex control with required functionality in webpage.
|
|
|
|
|
sorry not in a web page... in oracle forms...
|
|
|
|
|
examine your oracle forms with Spy++ that comes with 'Visual Studio Tools' to check whether they have any window handle or not
|
|
|
|
|
yes.it is showing window handle. If i open the form in another machine,Will the window handle get change?
|
|
|
|
|
Karthika85 wrote: If i open the form in another machine,Will the window handle get change?
it will get changed. Handles are kernal tokens, and its OS who assigns handles in response to our API calls .
Use Spy++ to find out the ClassName/Caption of the window. You may try with FindWindow Function to get top level parent window handle, then FindWindowEx Function to get its child windows.
|
|
|
|
|
|
Is it possible to specify domain user credentials when using the IXMLHTTPRequest interface retrieved from IXMLDomDocument?
|
|
|
|
|
Hi
How to change the default Blue selected color of CListCtrl to White?
|
|
|
|
|
Have a look at this[^] thread. The second answer from the thread contains an attached archive. The code from the archive does exactly what you need.
|
|
|
|
|
|
From PEPE2207:
Hi, Somebody could help me writting a mfc piece of code that throw me the following kind of error:
"C:\PROVIS\Mypro\MyproDlg.cpp(1107) : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)"
void CMyproDlg::OnStartone() // method controlled by a button
{
// TODO: Add your control notification handler code here
th* str1 = new th; // th is a struct with only one member: struct th { int mya; };
str1->mya = 155;
LPVOID pParam;
pParam=&str1->mya;
AfxBeginThread(MyThreadProc, pParam);
return;
}
UINT CMyproDlg::MyThreadProc(LPVOID pParam) // My controlling function thread
{
static int nXthr=0;
th* pmyintegerintothread = (th*)pParam;
nXthr += pmyintegerintothread->mya;
m_CurrentDate.Format("%d", nXthr); // m_CurrentDate is a edit box variable defined
UpdateData(FALSE);
return 0; //threat completed successfully
}
Thanks in advance.
|
|
|
|
|
Try:
j.v.r. wrote: AfxBeginThread( & MyThreadProc, pParam);
|
|
|
|
|
It's because you're passing a (non-static judging by the m_ variable in it) member to AfxBeginThread.
I'm hoping there's a bit more to your code as what you've written and appear to want to do is spin off a thread to assynchronously update an edit control with something provided from another thread. While we're on the subject are you sure the casts you've written are really going to do what you want them to? You're passing a pointer to an integer into the thread function and then casting it back to a structure, not an int.
As a quick hint - do all your UI programming on one thread. By all means spin off other threads to do work BUT don't try and update the UI state from these other threads. Most programmers (including/especially me) aren't clever enough to pull that one off properly. Over 50% of the bugs I've had to sort out since 1995 have been related to threading.
Cheers,
Ash
|
|
|
|
|
0) The thread function should be declared as static in the dialog class
1) You could cast the first parameter by (AFX_THREADPROC)
2) You should delete the passed pointer (pParam=str1 and not pParam=&str1->mya)
at the end of its usage in the thread function
virtual void BeHappy() = 0;
|
|
|
|
|
j.v.r. wrote: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)"
Read the "Creating the Secondary Thread" section of this article.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|