|
Hi !
Your question is not clear... Is this an Installshield question ? I do not understand what you mean with I have Launch Conditions in place that determine if the resgistry entry is there but how to I get the folder to install in the path indicated in the registry entry?. In Installshield, I seem to remember that you can use VB registry commands to achieve that.
What I suggest you is to use Innosetup, since it will take you approximatively 5 minutes to achieve that
~RaGE();
|
|
|
|
|
Rage wrote:
Is this an Installshield question ?
I created a SetupProject through Visual Studio .NET 2003 so it's INstallShield based.
Regards,
Brian Dela
|
|
|
|
|
Sorted
Regards,
Brian Dela
|
|
|
|
|
I want to use OpenSSL in my current socket application and i want to remove the MFC socket i.e MFC dependency. Where can i get sample code for OpenSSL or the documentation which tell me what steps needs to follow while using OpenSSL. Thanks For your Help.
|
|
|
|
|
I want to make the combobox with bitmap list.
Instead of using "AddString" function,
how can I make the list with bitmap.
|
|
|
|
|
You'll have to use an owner-draw combo box (set the CBS_OWNERDRAWFIXED or CBS_OWNERDRAWVARIABLE style).
This[^] article describes exactly this.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Code:
m_list.Create(IDB_BITMAP1,40,10,RGB(255,255,255));
//m_list is CImageList type member variable
m_Lang.SetImageList(&m_list);
//m_Lang is combobox control member variable
Umm... I'm very poor at visual c++.
I wrote those two lines for getting bitmap list.
But the bitmap image is not appeared.
How can I do?
|
|
|
|
|
I assume you're using CComboBoxEx because CComboBox does not have a SetImageList() function.
Have you associated an image with each item?
COMBOBOXEXITEM cbItem;
cbItem.mask = CBIF_IMAGE;
cbItem.iItem = nItem;
cbItem.iImage = nImageIndex;
m_Lang.SetItem(&cbItem);
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
A sentence is like below:
lpwndpos->flags &= ~SWP_SHOWWINDOW;
What is the meaning of "&"?
Thanks
|
|
|
|
|
Is it has the same meaning as below?
lpwndpos->flags = &(~SWP_SHOWWINDOW);
|
|
|
|
|
Aleon666 wrote:
Is it has the same meaning as below?
lpwndpos->flags = &(~SWP_SHOWWINDOW);
No. In the first question that you posted '&' is the binary operation AND.
lpwndpos->flags &= ~SWP_SHOWWINDOW is the same as
// pseudo code
lpwndpos->flags = lpwndpos->flags AND (NOT SWP_SHOWWINDOW)
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
The "&=" is an abbreviation of: lpwndpos->flags = (lpwndpos->flags & (~SWP_SHOWWINDOW)). So this is a bit AND operator.
The "~" means you invert all the bits that are in SWP_SHOWWINDOW (all 0 becomes 1 and all 0 becomes 1).
So this sentence just means you will put the bits specified by SWP_SHOWWINDOW (all the bits that are 1 in this constant) at 0 in lpwndpos->flags.
Hope this is clear enough !
|
|
|
|
|
I see.
Thank you very much!
|
|
|
|
|
|
|
Hi Guys,
I am writing a windows service to start / stop certain utility applications. The utilities are in Vb (Please don't ask me why a background process was programmed in vb, I don't know that myself). I used CreateProcess to start them, that was fine.
Now the problem arises when I want to stop them. I can't use TerminateProcess because the applications may be in the middle of something and I want to wait till they finish the job at hand. So I decided to use messages.
I tried PostThreadMessage. The problem I have was that on the utilities' side, if I used GetMessage then it waits for the message which makes the application hang and if I used PeekMessage then in some cases it was missing the Message altogether.
Finally I thought of using a dummy subclassed form and sending the message to to form. It's working now, but it seems like a mess to me. I'm pretty sure there's a better way. Any suggestions?
thanks.
P
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
Take a look two or three messages down "how do i Detect if an external program has finished excuting(shellexec)?" and read Rage's and cmk's messages. I think, they apply to you as well.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
I am waiting for them to finish.
Actually, I don't just want to wait for the programs to finish. I actually want to tell them to wrap up whatever they are doing and end.
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
PostThreadMessage() /PeekMessage() should work. Messages can not get lost if they're being sent to the correct thread, as long as you specify NULL (or 0 in VB) for the HWND parameter, and PM_REMOVE as the flags parameter. My VB is a bit rusty, but:
If PeekMessage(msg, 0, 0, 0, PM_REMOVE) = True Then
If msg.message = MY_MESSAGE Then
ExitProcess 0 ' Exit the process
End If
End If Where msg is the MSG structure variable and MY_MESSAGE is the value of the message that you are sending. I can't remember if the PM_REMOVE constant is declared like that, or whether it has a different name. Of course, if a different message is received, then it will need to be processed as well. If PeekMessage() returns False, then a message did not exist.
Hope this helps,
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks a lot. That's exactly what I had done.
But PeekMessage doesn't wait for the next message to arrive.
As a result, if the message arrives when the program might be in the middle of a transaction.
Could it be that by the time I call PeekMessage again the Message get processed (maybe by some default message handler which cannot comprehend the meaning of my user defined message?)
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
parths wrote:
But PeekMessage doesn't wait for the next message to arrive.
That's correct. If you need this, then you need to use GetMessage().
parths wrote:
Could it be that by the time I call PeekMessage again the Message get processed (maybe by some default message handler which cannot comprehend the meaning of my user defined message?)
Absolutely. If you're using more than one message loop, then you have to make sure all the message loops know about the message. It will probably be easier to code your main message loop similar to this:
Do While GetMessage(msg, 0, 0, 0) = True
If msg.message = MY_MESSAGE Then
ExitProcess 0
Else
TranslateMessage msg
DispatchMessage msg
End If
Loop This should work (I think )
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks,
I had tried GetMessage, but then it doesn't return till it gets a message (any message) (right?), and that's a problem too because then I can't continue processing until I get a message. So I'll have to keep sending dummy messages to the app.
I'll look for possible 'hidden' Message handlers, but is it possible that VB has it's own message handler which sort of peeks at all the messages coming into the app before forwarding them to the program message handlers or individual message handlers? I'm guessing that is what calls the VB event handler functions
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
parths wrote:
I had tried GetMessage, but then it doesn't return till it gets a message (any message) (right?), and that's a problem too because then I can't continue processing until I get a message. So I'll have to keep sending dummy messages to the app.
Not necessarily. Modify the message loop so it uses PeekMessage() instead of GetMessage() and do the processing after the PeekMessage() handling:
Do While True
If PeekMessage(msg, 0, 0, 0, PM_REMOVE) = True Then
If msg.message = MY_MESSAGE Then
ExitProcess 0
Else
TranslateMessage msg
DispatchMessage msg
End If
End If
' Do your processing here
Loop
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
In a controller I made I want to catch if user presses alt+return.
and I do it in OnSysKeyDown and everything works. BUT somehow a ‘boing’ sound is getting played.
Like if I pressed some illegal key combo.
How can I Stop it. It gets on my nerves.
(You get the same sound if you stand in IE and press alt+return )
|
|
|
|
|
Hello,
i must read values from an Excel sheet, which becomes updated by another program. So i tried to open the Excel-File with CDaoDatabase and open a CDaoRecordset with the OpenType "dbOpenDynaset".
I can reed the values from the sheet, but the recordset wasn´t updated, if the values from the sheet have changed. I must open and close the recordset again.
Another thing is, that i get the message, that the Excel-File is blocked by another user", when i try to open the Excel-File.
But the attribut bExclusive from the CDaoDatabase::Open is set to FALSE.
Thanks
Andy
|
|
|
|