|
I knew this.. By the create Dialog is error:
CDialog->Create(IDD_DIALOG,this);
this dialog own other ActiveX, I think that because is error by the create of dialog..
I don't know to solve this problem..
|
|
|
|
|
majco333 wrote: CDialog->Create(IDD_DIALOG,this);
this dialog own other ActiveX, I think that because is error by the create of dialog..
What does this mean ?? I do not understand.
Appu..
"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..
|
|
|
|
|
Hi,
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?
#include<windows.h>
#include<sqlext.h>
#include<stdio.h>
#include<string.h>
int main(void)
{
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[10] = "sa";// User ID buffer
UCHAR szPasswd[10] = "mis";// Password buffer
UCHAR szModel[128];// Model buffer
SDWORD cbModel;// Model buffer bytes recieved
char buff[9] = "fgddg";
UCHAR szSqlStr[150]= "INSERT into JON(branch_name, balance)Values ('fgddg',3)" ;
RETCODE retcode;
//sprintf((char*)szSqlStr,"INSERT into (Tablename)(Columname) Values ('%s')",buff);
// Allocate memory for ODBC Environment handle
SQLAllocEnv (&hEnv);
// Allocate memory for the connection handle
SQLAllocConnect (hEnv, &hDBC);
// Connect to the data source "test" using userid and password.
retcode = SQLConnect (hDBC, szDSN, SQL_NTS, szUID, SQL_NTS, szPasswd, SQL_NTS);
if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)
{
// Allocate memory for the statement handle
retcode = SQLAllocStmt (hDBC, &hStmt);
// Prepare the SQL statement by assigning it to the statement handle
retcode = SQLPrepare (hStmt, szSqlStr, sizeof (szSqlStr));
// Execute the SQL statement handle
retcode = SQLExecute (hStmt);
// Project only column 1 which is the models
SQLBindCol (hStmt, 1, SQL_C_CHAR, szModel, sizeof(szModel), &cbModel);
SQLBindCol (hStmt, 2, SQL_C_FLOAT, szModel, sizeof(szModel), &cbModel);
// Get row of data from the result set defined above in the statement
retcode = SQLFetch (hStmt);
// Free the allocated statement handle
SQLFreeStmt (hStmt, SQL_DROP);
// Disconnect from datasource
SQLDisconnect (hDBC);
}
printf("Done");
// Free the allocated connection handle
SQLFreeConnect (hDBC);
// Free the allocated ODBC environment handle
SQLFreeEnv (hEnv);
return 0;
}
Riz
-- modified at 3:53 Friday 14th July, 2006
|
|
|
|
|
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
|
|
|
|
|
hello everyone,
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
|
|
|
|
|
Can you post the code,where you u r getting the error.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
A typical pointer problem. In your programm you are using a pointer with a bad target or are writing after end.
ie: char sz[5];
sz[7] = 0;//DAMAGE !!!!
Do single line debugging an check when there is access to the damaged memory.
Greetings from Germany
|
|
|
|
|
Can you be more specific
whitesky
|
|
|
|
|
Dear all,
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.
Thank you very much.
|
|
|
|
|
hello
when i make menu..we usually write text for the menu item.but i want insert image along with the menu item.
how can i do it.
thanx
|
|
|
|
|
Check this.
CP - Menus section you can find many articles on this.
|
|
|
|
|
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
hi
thanx for replying but my application is a Dialog Based Application and i hav menu in dialog.and images can be individual images.
plz clear my doubt.
thanx
|
|
|
|
|
I think the link that i provided itself has a dialog based sample..
|
|
|
|
|
In my list box , I input some chinese texts. However, it slow "&d2" to replace the words. How can i solve this problem?
|
|
|
|
|
Try writing the application using unicode.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
but it can't using unicode....another methods?
and i try to using unicode...it can't
-- modified at 3:41 Friday 14th July, 2006
|
|
|
|
|
i'm facing a problem, can someone help me with it? i do not know how come the window is unable to detect the location of the library files...
It goes like this:
//
// BioAPIClass.h
// Classes to simplify using the BioAPI from an application
//
#if ! defined (BIOAPICLASS_H)
#define BIOAPICLASS_H
// ../../../BioAPI/include/
// ../../../BioAPI/addins/maf
// ../../../BioAPI/imports/cdsa/v2_0/inc/
#if ! defined(USE_DEFAULT_PATHS) //FPC software structure
#include "bioapi_schema.h" // For data types etc
#include "port/bioapi_lock.h" // Needed for maf_collectn
#include "port/bioapi_port.h" // Needed for maf_collectn
#include "bioapi_err.h" // Needed for maf_collectn
#include "maf_collectn.h" // Needed for maf_util
#include "maf_util.h" // For App_Malloc, App_Free
#include "..\BioAPICommon\BioAPICommon.h" // Things common to application and BSP side
#include "..\BioAPICommon\FPCoreErrors.h" // FPC Specific error codes
#include "..\BioAPICommon\FPCoreConfig.h" // FPC specific additions
#include "..\CmnLibrary\CmnRegistry.h" // For registry access
#include "..\CmnLibrary\CmnDataStorage.h" // Data storage
#else //Default software structure
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h" // For data types etc
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\port\bioapi_lock.h" // Needed for maf_collectn
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\port\bioapi_port.h" // Needed for maf_collectn
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_err.h" // Needed for maf_collectn
#include "..\..\..\BioAPI Consortium\BioAPI\source\addins\maf\maf_collectn.h" // Needed for maf_util
#include "..\..\..\BioAPI Consortium\BioAPI\source\addins\maf\maf_util.h" // For App_Malloc, App_Free
#include "..\inc\BioAPICommon.h" // Things common to application and BSP side
#include "..\inc\FPCoreErrors.h" // FPC Specific error codes
#include "..\inc\FPCoreConfig.h" // FPC specific additions
#include "..\inc\CmnRegistry.h" // For registry access
#include "..\inc\CmnDataStorage.h" // Data storage
#endif
WHEN I COMPILE, IT SAYS:
Compiling...
FPCore Test.cpp
c:\documents and settings\student\desktop\research\fp\pc software\new folder\inc\bioapiclass.h(28) : fatal error C1083: Cannot open include file: '..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h': No such file or directory
FPCore TestDlg.cpp
c:\documents and settings\student\desktop\research\fp\pc software\new folder\inc\bioapiclass.h(28) : fatal error C1083: Cannot open include file: '..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h': No such file or directory
Error executing cl.exe.
FPCore TestD.exe - 2 error(s), 0 warning(s)
THIS IS WHERE MY LIBRARY FILES ARE KEPT:
C:\Documents and Settings\student\Desktop\research\FP\PC Software\New Folder\inc\
bioapi100.lib
bioapi_util.lib
BioAPIClasses.lib
BioAPIClassesD.lib
CmnLibrary.lib
CmnLibraryD.lib
PLESAE HELP ME WITH IT~ THANKS
Thanks & Regards
|
|
|
|
|
If u r using VC6,
Try this.
Go to Tools->Options->Directories and Include those all files and rebuild the application.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
C:\DOCUMENTS AND SETTINGS\STUDENT\DESKTOP\RESEARCH\FP\PC SOFTWARE\NEW FOLDER\INC
this is what i've included according to ur advise.. but still, the errors are still exists... hmmm... why is that so?
Please help... Thanks
|
|
|
|
|
The easist way to solve all problems is to simplify them. Copy all files in short directories as "Header" or "libs.
The message is clear:
c:\documents and settings\student\desktop\research\fp\pc software\new folder\inc\bioapiclass.h(28) : fatal error C1083: Cannot open include file: '..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h': No such file or directory
the file bioapiclass.h isnt there
..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h'
believe the compiler. Remove the "..\..\" Part.
Greetings from Germany
|
|
|
|
|
By the way, what is the meaning of "..\..\" ??
Thanks,
Regards
|
|
|
|
|
we3Guy wrote: By the way, what is the meaning of "..\..\" ??
Each ".." means to move up by one directory.
For eg: if the current directory is C:\nibu\babu\thomas, then the first ".." will take you to babu, the next one to nibu, the next one to C:.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|