|
Sorry, I got lost in the massive message that turned out to be.
When I add 2 composite jobs to the list, I end up with 4 entries, two for each one.
[Insert Witty Sig Here]
|
|
|
|
|
Have you tried replacing the second InsertItem call with MoveItemToGroup. The result you are seeing is what I would expect with 2 InsertItem calls.
|
|
|
|
|
first, call listControl->InsertItem(&item);
Your first call
<br />
listControl->InsertItem(i, (LPCTSTR)printableAttributes-><br />
name->c_str());<br />
should be converted to
<br />
listControl->SetItemText(i, 0, (LPCTSTR)printableAttributes-><br />
name->c_str());<br />
BTW, why do you cast to LPCTSTR? If you have your Unicode setting right, it should compile cleanly without the cast; if your Unicode settings are wrong, the cast will not help at runtime.
Cheers,
Alex
|
|
|
|
|
Hi all,
I am doing multiple SQL statement into the database. But what to do when the database connection was dropped or lost. Is there a function I can use to test the db connection before performing the SQL statement?? or is there another technique I can use ??
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Are you using SQLExecDirect() ? If so, what does it return when you try and interact using a dropped connection?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi David,
Thanks for your reply, and I must say point made. Yes I am using SQLExecDirect() , can I use the return message to establish whether a connection exists or not?
Thanks again
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: Yes I am using SQLExecDirect(), can I use the return message to establish whether a connection exists or not?
What does it return when you try and interact using a dropped connection?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I haven't check it yet, but it would make sense to use the return message, the return code is -1. But the return code when a sql error occurs, is also -1. Thus going on the return code is not accurate, but I can get a hold of the return message. Which I can use to see what the real problem was. Making use of SQLGetDiagRec(SQL_HANDLE_STMT, hstmt, 1, sqlState, &nativeErr, Msg, sizeof(Msg), &TextLengthPtr); function.
Thanks for the advice David.
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: Making use of SQLGetDiagRec...
Which is what I was implying.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
A Q&D way to ensure that you are correctly roundtripping to the RDBMS and successfully executing SQL is to execute something like:
select 1 -or if using Oracle:
select 1 from dual If you get back a successful return code with a result column of "1", then you know everything is working correctly.
Note: this is a fairly heavyweight solution to what may be an easy problem, depending on the API(s) you have avaialble for your target RDBMSes. But it might be easier than decoding error messages from different RDBMSse...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
|
How to do it?
I want to create an application with VC,and the application can create .exe file
Such as,software can produce electronic album
I have no idea,please introduce some skills about this.
Sorry,My english is not very good.
|
|
|
|
|
In order to create a .exe file, you first need to become very familiar with the PE file format. As you are an obvious beginner, I would advise against it. Stick with something more on your skill level.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If you want to write a compiler that can create .exe files then you need to know about the PE (Portable Executable) format. This defines the header format and internal layout for executable files on Windows. There are articles on Code Project about the PE header format and Microsoft have some Knowledge Base articles on in, there are tools on www.sysinternals.com and on Code Project for examining PE headers and you'll probably want a book or two on compilers as well. Good luck.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
If you search on the www.codeguru.com you can find an article on that article it tells detaily about exe files.
|
|
|
|
|
Hi All,
I need to decrypt a file encrypted by a php script..it can be any algorithm which is good enough and cannot be cracked easily..if it cannot be cracked at all will be the best solution..but for now i am just looking for any of the encryption algorithm that can encrypt the data good enough not to be cracked..easily...and that can be decrypted easily using VC++...can someone help me out in doing the same..I need it very urgently...any of the algorithm..Rijndael..or Blowfish or anyone..but it can also be decrypted easily..
Thanks a lot..
Regards
|
|
|
|
|
hi! i have explorer window and i should check "does my window have parent folder", only check, don't browse(!) i use COM interface IShellBrowser? but it doesn't help me, because i need only checking.
Does anybody have such experience ?
thanks for answers.
|
|
|
|
|
mitok wrote: ...i should check "does my window have parent folder"...
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
yes , i can. i'm developing a plugin for Windows Explorer (windows Vista). I have windows explorer and i need to check when in my window - desktop! in other words there isn't parent folder of folder which is opened in my explorer window. (but don't browse). application shouldn't depend on concrete language.
thanks for answers.
|
|
|
|
|
Hi All,
I am using CStringArray object for adding number of strings in it. I used following code
m_HTML_Page_arry->SetAt(i,strPagePath);
where m_HTML_page_arry is declared as CStringArray *m_HTML_page_arry in .h file of this class. I got assertion on the above code. So if anybody have solution to this then plz forward it to me.
Atul
|
|
|
|
|
|
Hi
I use Add as following way, though there is Assertion, what is the problem in this code.
m_HTML_Page_arry->Add(strPagePath);
Thanks in Advance
Atul
|
|
|
|
|
have you allocated memory for this?
m_HTML_Page_arry
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
Hi Chandu,
I did not allocate memory to m_HTML_Page_arry object. I used it directly. So can I allocate memory to it.
Thanks in advance
Atul
|
|
|
|