ok, what you need to do is go make a loop to go thorugh each character of the string
im assuming the first character is alwase going to be a ":"
so i would start at position 1 (the second character)
you know the whats between ":" and "!" is the user name (i assume) so make a variable for the user name
if you havent hit a "!" then add that character into the variable for user name,
what i would do is make a an array like
have a variable to store what element you are on,
if you hit a ":" then you are on 0
if you hit a "!" then you are on 1
when you hit a " " then you are on 2
when you hit another " " then you are on 3
then when you hit another ":" you are on the message
Can anybody give me any pointers on how to make an mfc/C++ application upgradable? I've written the app, created a setup project, and am about to distribute it. But if in two months time i want to release an upgrade to my program, what should I do?
I have absolutely no idea how upgrades work, or what I have to do to make my application upgradable.
I'd be grateful for any general guidelines or principles about what I should do. I don't need any sample code or anything, just general suggestions about the approaches I might take.
Thanks for your help. i realise this thread is a bit vague, I can provide more information about my app if anybody requests it.
Thanks Christian. I realize that just replacing the old exe with a new one is the easiest option, but this is not as elegant as distributing an upgrade that is nice and small, and only replaces the bits of the program that are out of date. So I guess I would like to make "a patch that updates the old one". But how do I do that? Once I have compiled my exe, surely I can't change anything in its code?
You can do that, choosing just the classes that you're likely to change. Or you can use a tool which basically diffs the two exes ( old and new ) and then makes a program which takes the differences, and merges them into the existing ( old ) app on the client machine.
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
I'm creating a test COM server to learn more about the COM interface.
Now I tried to call call the server via C, and everything works fine.
But when I'm trying to call the server using VBScript then always the same error occurs:
800A01A8 - Object required
The script looks like this:
Set t = CreateObject( "atlcom.TestInterface" ) (the interface gets loaded here, I used OutputDebugString to make that sure!)
t.MsgBox "Test" <- this is the error line.
I don't know what is wrong.
Do you have any ideas?
I'm trying to design a control, derrived from CStatic with keyboard navigation support. When user press the Tab button I call GetNextDlgTabItem and then SetFocus, but, for example, if the next control in tab order is button it draws inproperly - the focus rect is drawn, but the button does not look as default.
Hi all, I'm kinda new to C++ and I'm using it to try and understand object orientated programming.
I've got a few classes written which I have copied from a book and stripped down to the bare minimum so I can try and see what is going on. Basically I have 3 classes ( TruckLoad, Box and List ). As far as I understand it List is a aggregation of the Box class so that multiple instances of the Box class can be stored ( container class - I think ). TruckLoad is a class which contains a list of the box objects. So the dimensions of each box are stored in each instance of the box object which is stored in the TruckLoad list.
I am trying to store a list of characters instead of a list of numbers. I tried changing all the 'double' declarations to 'char' but a number of errors were produced. If I wanted to store a list of characters instead of a list of numbers how would I do this? For example when the program is run it produces:
The largest box in the first list is 100 by 100 by 100
Press any key to continue
What I am asking if I wanted to produce the following how would I do it?
The largest box in the first list is one hundred by one hundred by one hundred
Press any key to continue
If you want to take a look at the classes I've put together, you can download all the entire project files here:
By default, most keypresses within a dialog are going to be processed by the control within the dialog that has the focus. For example, if you've got a check box, an edit control, and a button within the dialog, one of those controls will process keypresses if they've got the focus.
Yes, I know that but I thought that there's a direct way. I don't know how to send the message from the control to the dialog. I tried with SendMessage() (in OnKeyDown() of my control) but I'm not sure for the way to refer to the dialog and the right set of parameters. Could you give me some example? Thanks in advance!
Last Visit: 31-Dec-99 19:00 Last Update: 28-Jan-23 17:09