|
Anu_Bala wrote: NumberofOPCServers(True,sHost)
since NumberofOPCServers is not an API function,Which OPC toolkit are you using?
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
i want to know that how can i add my required functionality to minimize/maximize button in Form View as well as in Dialog.
Ahmad Ali
|
|
|
|
|
When you click min or max seeWM_SIZE
whitesky
|
|
|
|
|
|
uetiean wrote: want to know that how can i add my required functionality to minimize/maximize button in Form View as well as in Dialog.
Do you need Maximize and Minimize button on Dialog Box!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
In c++ things r:
difine class, functions.
In main call function,with or without parameter.And display OK
BUT when same thing has to b done on VC++ how,
Till difining the class and writhing function is over...now how to call the function by passing the parameter....so that they work .project open with dialog based application(exe),using active-x
controls and working with API
base class : CWnd
class name : caAPI
header file : aapi.h
implimentation file : aapi.cpp
New to VC++
|
|
|
|
|
what u need? Question is not clear
|
|
|
|
|
things which i was doing in c++ now i have to do in vc++...
I have define the class and all the function as in .h and .cpp file...
But i dont know how to call that function as i was doing in c++ in void main() now i have to call function in vc++ with parameter i dont know how
Thanks
-- modified at 0:10 Friday 21st July, 2006
|
|
|
|
|
you can create a main function. Create an instance of your class in the main function. And then call the function with the object/pointer variable.
The same as you did in C++
In MFC applications however the main function is hidden.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
include the header file, where u want to create the object and functions. Then create objct and call function
In VC u can creatte diff. kind of projects using the wizards, so dont compare it with c++ main().
If u want to create dos type app, use Win32 Console App. wizrd.
u can create Windows app, using Win32 App wizrd..In this case u can see WinMain instead of main()
First learn about how to use VC++ and then start programming than this kind of Quick start....Slow and Study WIN(dows)the race
|
|
|
|
|
priyanka s wrote: But i dont know how to call that function as i was doing in c++ in void main() now i have to call function in vc++ with parameter i dont know how
there are many thing and function are become obslete or replaced by better function in VC++ for Example Void main () is replaced by WinMan() in Win32 and CWinApp Wrap same in MFC!
so moral of story bought a VC++ book or look for online material to learn vc++...
have a look at Visual C++ 6 Unleashed (link Provided to me by VuniC)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
could anyone tell me about the method that how to fetch the string displayed in the MS-DOS, such that i can save those string to any ".txt" file.
|
|
|
|
|
How do u want to do it?Through a preogram or manually?
nave
|
|
|
|
|
Try this :
CString consoleData=ExecuteExternalFile("cmd.exe","Notepad");
I hope this will help
!OOPS----- See here for ExecuteExternalFile function
http://www.codeproject.com/cpp/9505Yamaha_1.asp[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 23:52 Thursday 20th July, 2006
|
|
|
|
|
|
Thanks buddy.
I just modified my post.
I was referring to the same article
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi! thanks a lot!
I still have a question.
could anyone please help me?
if i use the VC++ function as: system("dir");
,then how to do such that the CString variable "consoleData" has the MS-DOS text which contains the content as following
磁碟區 C 中的磁碟是 ROOT
磁碟區序號: 60FF-1491
C:\ 的目錄
2006/07/25 下午 03:29 18 1.bat
2006/07/19 上午 08:54 amc
2005/07/30 下午 10:07 0 AUTOEXEC.BAT
2005/07/30 下午 10:07 0 CONFIG.SYS
2006/04/17 上午 11:12 Documents and Settings
2006/04/17 下午 01:41 Inetpub
2006/04/21 下午 03:54 Keil
2005/10/20 下午 07:49 NETTERM
2006/07/25 下午 03:29 0 out.txt
2005/07/31 上午 12:05 PN300
2006/07/20 下午 12:34 Program Files
2006/04/21 下午 04:34 Sharpdesk Desktop
2006/03/02 上午 10:23 21 tmuninst.ini
2006/02/22 下午 11:57 27,262,976 VIRTPART.DAT
2006/07/25 上午 09:28 WINDOWS
6 個檔案 27,263,015 位元組
9 個目錄 11,136,081,920 位元組可用
ErixChang
|
|
|
|
|
When ever i compile my program this error is there how to come out of this....how to slove this error????
//BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
After deleting debug folder still not working...error is there
-- modified at 23:33 Thursday 20th July, 2006
|
|
|
|
|
Delete the debug folder and try rebuilding...
nave
|
|
|
|
|
|
ok..Another way..Take project->Setting->C++ tab
in the category combo take "Precompiled Headers"
Now check the Radio button "Not using precompiled headers".
Then rebuild the preoject.
nave
|
|
|
|
|
I dont know what went wrong....now i got three error......After that
c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.
|
|
|
|
|
hi
Try by adding #include <stdafx.h>
Hope this will help
|
|
|
|
|
|
Are you using VS2003 or vs2005??
#include <stdafx.h> should be in the first line of all include statements.
Just check this.
|
|
|
|