I have dialog which use other ActiveX and I don't know how do it
First u need to register the OCX.
Follow these steps to register:
1.On the Taskbar, select Start > Run. 2.In the Open field, type regsvr32 "<path>\Strip.OCX", where <path> is the directory where the file is located on your computer and NameOfFile.extension is the name of the file. For example:
To insert the registered ActiveX into your current project:
1.Projects->Add to Project->Components and Controls->Registered ActiveX controsl and select that particular ActiveX control.
"If you judge people, you have no time to love them."
I make usage dialog for the ePad, which use ActiveX control for the ePad..
And now I need rebuild this dialog on the ActiveX control because it is necessary for the
adition to main application.. This application will be used this dialog..
I am trying to run an embeded SQL code using C in the VC++ environment.
I wanted to knw how to bind the DSN with the IP addres so that i can get connected to a remote server.Following is the code: What value should i write for the Data Source?
HENV hEnv = NULL; // Env Handle from SQLAllocEnv()
HDBC hDBC = NULL; // Connection handle
HSTMT hStmt = NULL;// Statement handle
UCHAR szDSN[SQL_MAX_DSN_LENGTH] = "Provider=SQLOLEDB.1;Persist Security Info=False;Initial Catalog=Northwind;Data Source=10.11.50.15 ";// Data Source Name buffer
UCHAR szUID = "sa";// User ID buffer
UCHAR szPasswd = "mis";// Password buffer
UCHAR szModel;// Model buffer
SDWORD cbModel;// Model buffer bytes recieved
The DSN is what contains the host name or IP address of the machine hosting the database. SQLConnect() should simply be referencing that DSN. It looks as though you might be mixing a DSN and a DSN-less connection.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
I've written a simple application that has a class(Class_A) called by WinMain's Controller class under function "Command(int cmd)" specifically IDM_RUN_PROG. The code compiles but it throws an "Access Violation" error when run. Also debugging it produced this message "DAMAGE: after Normal block(#50) at 0x008651C0"
I've declared a new pointer of Class_A within the Command(int cmd) function under Controller class.
"You have to be in a situation where you see just how fast things fail to make you take it seriously, I guess. " Bruce Eckel
Currently, I would like to add on a message box on each dialog in the project and enable user to just key in the numbers and then the current screen will jump to the desired screen, provided that the screen is not tied to any previous screen(if so, then it will then choose to jump to the first screen of the series. eg: if you wanna access C from A, then if you key in C, then it will then redirect to the B page first because it need to go through B before reaching C).
Please give any concepts or methods on how to handle this screen jumping at all existing screen in a project.