Search:
Type: Posts; User: dlhc922
Search:
Search took 0.05 seconds.
-
Hello,
I use ODBC API to insert records into database with storage procedure (sql server 2k5) , the field in table is ntext type.
Use SQLBindParameter to bind a wchar parameter.
...
-
sorry , your code is right.
I met another problem.
void* p ;
p can point to many underlying typies
for example:
-
thanks
It doesn't fit my case.
-
when char* , it seems not be right.
char* pStr = "abc";
void* pValue = pStr;
char szBuffer[128];
sprintf( szBuffer , "%x", (char*)*(char*)p );
-
Thanks , petter
In the memory window in vc++ IDE , I can see the value by the memory address, I only want to convert the value to ASCII, any method like this.
-
It worked ,thanks
But in my case ,the void* pValue maybe point to char* , int* , float*....
sprintf( szBuffer , "%x", *(int*)p); doesn't fit every case.
How to resolve this?
Thanks
-
Hello,
Here is my code:
int i = 20;
void* p = &i;
char szBuffer[128];
sprintf( szBuffer , "%x", (char*)p);
-
January 31st, 2007, 07:42 PM
Hi ,
I was working on an ATL control.
There is a dynamic popup menu in the control , items for menu is saved in txt file.
Below is code for demo:
CMenu menuPopup;...
-
January 12th, 2007, 10:05 PM
Hello,
I'm working on an mfc control used in Internet Explorer.
When in IE6 , it worked well.
In IE7 , it worked well without zoom in/out.
But zoom in to a larger or smaller...
-
January 10th, 2007, 11:46 PM
Hello,
I worked on an old project (COM).
There is a dll file in the project which provide two functions to allcoate memory and free memory. (e.g foo1() ,foo2() ).
I checked source...
-
My application is a win32 service which have several thread to handle the data read from http server.
It worked well on Win xp ,win 2k .
but on win 2003 server R2 , when try to stop the service...
-
August 31st, 2005, 09:27 PM
maybe local variant
make the CButton as the member field of class
-
August 23rd, 2005, 08:42 PM
Hi all
when use CString::GetBuffer()
Should I use CString::ReleaseBuffer() to free memory??
thanks
-
August 2nd, 2005, 09:30 PM
Compare each table will have two problems.
1. efficiency
there are hundreds of tables and the data's size will be reache many GBs
It will spend long time to finish the compare
2. Just in...
-
August 2nd, 2005, 04:23 AM
I need to monitor the db table
if there are some operations such as insert ,delete ,update
I should handler the event and get the changes of table.
-
August 2nd, 2005, 04:15 AM
thanks
i am sorry
I don't want to get the duration of update or insert
I want to get the last update time or create time.
-
August 2nd, 2005, 03:02 AM
thanks
I can't create any other objects( table,view,sp,trriger .etc..) for the db
I think sql server should supply the api for event handler when data is inserted or updated .but I down konw...
-
August 2nd, 2005, 01:54 AM
How to handler the event of Sql server in vc++
thanks:)
-
August 2nd, 2005, 12:35 AM
what's about the report's format ? all strings or integers ??
if that ,you can write them to csv file line by line ,
every two fields should be separated by comma.
pay attention to the string...
-
August 2nd, 2005, 12:30 AM
In Sql server.
There is a table has two fields : "id " , "name"
I insert a record into the table or update a record
and how to get the update or insert time by vc++??
-
July 28th, 2005, 08:08 PM
I have confusion on allocate memory from Stack or Heap?
Anyone can demonstrate me with some code ?
which is allocated from Stack and which is from Heap
thanks : )
-
July 28th, 2005, 04:20 AM
if try to logon with wrong user name and password
it will return "Login failed for user ..."
if use query statement not in Syntax
it will return "Invalid authorization specification
you...
-
July 28th, 2005, 02:32 AM
I want to retrieve tables' columns' information in sql server 2000 by ADOX
but if the columen was defined as type : numeric or decimal
pColumn->Type both return 131
how to differentiate ...
-
July 27th, 2005, 09:26 PM
Thanks for your advice
I will. : )
-
July 27th, 2005, 09:12 PM
thanks
I plan use regular expression to parse the SQL statement(only for create table) to get the fileds' information.
but there are too many difference among them.
I had changed the...
|
Click Here to Expand Forum to Full Width
|