|
Hi.
My name is Roxanne and I am a C++ / C# programmer.
In the company that I’m working at, we are programming a business program for the customers and the software have been done in Visual C++ 6.0
I have to create and add to the software a new feature pretty similar to: (LiveUpdates from Norton antivirus or another software that check for softwares updates through the internet), to let the customers get the new software’s updates.
Can anyone help me out with some ideas of how to do it?
If somebody can help with some ideas or examples codes I’d appreciate it.
Thanks
Roxanne
|
|
|
|
|
Where is the problem?
Collect all information about the modules used within your software and it's version numbers.
then you could create a php script on the server to parse these version numbers, and if there are new versions then output the urls of the new files. so the client software calls the .php page with the module names and versions as GET parameters and receives the link list of the new files. then download the files and install them. isn't it easy?
Don't try it, just do it!
|
|
|
|
|
thanks Alexander for your help
What customer wants is this.
When they click at LiveUpdates menu, then a dialog box come out and a progress bar star downloading the bytes of the new updates and when it finish then install it.
Do you have any examples or you know some place that I can find one?
Thanks
Roxan
|
|
|
|
|
Or simply a .txt file on the sever that contains all the version numbers/program names.
Download this and parse it, if there is som newer software then download/install it.
"An expert is a person who has made all the mistakes that can be made in a very narrow field." - Neils Bohr
|
|
|
|
|
I need your help!!!!
The question is that I need implement a scanner option in my app via twain. I must scan documents ith a automatic name (sending by myself).
Anybody can help me how to call a twain?
|
|
|
|
|
I would like to fix the List Control into large icon mode and not display the text for each item below its icon. That's easy. I can use Custom Draw or even simpler, just set the text to "" when I add the item.
Here is my problem: For selection purposes the WCC still considers the space for the label when it does hit testing. I would like that not to be the case but rather limit selection to mouse clicks on the bitmap image only.
After several hours of research I think I can't do this but I wanted to know if anyone had a bright idea.
Thanks!
|
|
|
|
|
Why not use CListCtrl::HitTest (with flags = LVHT_ONITEMICON) to check where the user has clicked and refuse the selection if the hit test fails ?
~RaGE();
|
|
|
|
|
Hi!
In an application I'm making, I would like to be able to play an .asx file. The file just contains an url of the address of a radio station (that's what I want people to be able to hear ). I just want to be able to start and stop the audio. I trust there is an easy way to do this!
I have tried to find an article/tutorial or source code related to this but without much luck.
I would appreciate it if anyone could help me out.
Thanks.
Cheers,
Bail Organa
PS: Sorry for my (very) rusty english.
|
|
|
|
|
Hello,
I want to use string instead of commands
CString myCommand="MessageBox("Hello")";
and with a command I want to execute this command,
Best wisehes,
Thanks.
|
|
|
|
|
huh ? can you explain what you want to do ? ( context if possible )
you can't really...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
dSolariuM wrote:
CString myCommand="MessageBox("Hello")";
I'm not sure what you expect this to do. If you want to execute the MessageBox() function, just call it like any other function. Can you clarify?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I think he wants to be able to convert text to code. In Visual FoxPro, you can do this. A friend of mine brags about being able to do this in VFP, and not in C++. In FoxPro you can write code like this:
lcString = text1.Value &&user input text into an edit control that equals "MessageBox('hello')"
&lcString && will actually execute the string as code
the '&' in front of the string denotes something in foxpro called 'macro expansion' and will actually use the string as if it were code, so that if you wanted to use it for something like teaching purposes, you could have the student type in a line of code, and execute it at runtime. This is one of the ONLY things I like about vfp. It might not have any very common uses, but I think it's cool to allow the user to execute code (or yourself for debugging purposes, maybe).
Anyway, I've also wondered if there was a way to do this in C++ and it kind of frustrates me to think that a rinky dink language like FoxPro can do something like that, and C++ can't.
Bugs?! What do you mean, 'bugs'? We purposely put those 'Undocumented Features' in the program.
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
I haven't used FoxPro since 1991, but I do remember being able to do this. I didn't think much of it at the time, but in retrospect, it is a neat feature.
"Rinky dink" is not a term I'd associate with FoxPro, especially the visual version. I suppose this feature is possible in part because of differences between a compiled language and an interpreted language.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
No, I guess you're right, I just HATE FoxPro. A couple months ago I was forced into learning it because one of our main applications we develop and support is in FoxPro. The program was origininally done in 2.6, but was recently converted to vfp 7. Me and another programmer had to take over this project, which was done on the outside, but still needs modifications, and also add another module.
The IDE itself is buggy. Debugging is a chore. And it lets you compile just about anything without warning or error - it just crashes when it gets to the point where you're accessing a variable that wasn't declared or something like that. I've heard that VFP 8.0 is a LOT better, but I haven't had a chance to look at it.
On a positive note, another thing that can be cool about foxpro is that we have one main application that accesses a bunch of smaller apps. If you make a variable public in one app without releasing it, any other app can have access to that variable without it being declared. But this can also have its drawbacks. The saving grace is that the programmer who originally wrote the program (and is no longer with us) is brilliant and very talented.
If I write code in my sleep, does that make me brilliant, or just a lazy programmer?
My articles
www.stillwaterexpress.com
BlackDice - the programmer formerly known as bdiamond
|
|
|
|
|
BlackDice wrote:
And it lets you compile just about anything without warning or error - it just crashes when it gets to the point where you're accessing a variable that wasn't declared or something like that.
Have you set LanguageOptions to 1?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
no, I haven't. Actually haven't even seen it. The only thing is that because of poor naming conventions with public variables, I can't even just look at code and see if the variable wasn't declared, or is declared publicly in another app. And since there's about 10 different apps and some variables have the same name in different apps that aren't actually the same variable, it's very hard to track stuff like that down. I don't fault the previous programmer, because at first he was working with a team of about 6 other individuals, none of who should've even been allowed to touch a computer, let alone try to program anything!
But I thought about searching for a way to do that (thinking of 'Option Explicit' in VB), and realized it might cause more headaches for right now. This new version of the program is already at a few beta sites, and we're working furiously trying to get the update out for the 'modifications' that need to be made. It might be something to take care of, but right now we've really got our boss breathing down our necks (a boss who thinks that well-enough should be left alone, and hates changing ANYTHING, but hasn't programmed anything in over 20 years).
But I will look into that, and as always, thanks!!
If I write code in my sleep, does that make me brilliant, or just a lazy programmer?
My articles
www.stillwaterexpress.com
BlackDice - the programmer formerly known as bdiamond
|
|
|
|
|
Hello everybody,
I want to have a custom title bar with
my own shape.
Please help me,
I want to create it myself not by a class
Best wishes
Thanks
|
|
|
|
|
Hi
I try to Create a File. The LpFileName i will receive from a token. But i get and error when i do this, Why? Error : error C2065: 'Lfilnavn1' : undeclared identifier
Here is some of the code:
HANDLE hFile1;
char seps[] = ",";
char *token;
int ch = ',';
char* filnavn1;
token = strtok((char *)lpCmdLine, seps );
filnavn1 = token;
while( token != NULL )
{
token = strtok( NULL, seps );
// Get all token and assign to strings
}
hFile1 = CreateFile (TEXT(filnavn1), // Open .txt
GENERIC_READ, // Open for reading
0, // Do not share
NULL, // No security
OPEN_EXISTING, // Existing file only
FILE_ATTRIBUTE_NORMAL, // Normal file
NULL); // No template file
|
|
|
|
|
Hi,
just declare your Lfilnavn1 or remove 'L' from filnavn1 in the line where you get this error!
Then it should work
P.
|
|
|
|
|
You wrote :
just declare your Lfilnavn1 or remove L from filnavn1! in the line where you get this error!
I get this error in this line
hFile1 = CreateFile (TEXT(filnavn1), // Open .txt
GENERIC_READ, // Open for reading
0, // Do not share
NULL, // No security
OPEN_EXISTING, // Existing file only
FILE_ATTRIBUTE_NORMAL, // Normal file
NULL); // No template file
As you can see i do not use Lfilenavn1 at all. It is the CreateFile who make the error
So what could be wrong. It works in Visual C++, but not in Emededd C++ that I use.
|
|
|
|
|
The TEXT macro eventually translates to L
What TEXT expects is a quoted string e.g. TEXT("myfile.txt")
What you need to do is convert the char* filnavn1 to a wide char format string when using Embedded C++. Then use this as the first parameter in CreateFile
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi
I have memory leak in my simple consolebased application.
Though I have freed all memory allocated by malloc() or calloc() and deleted it with delete() if allocated with new()....It shows memory leak. I am not able to detect where it is showing memory leak....Is it possible to say at which place it is showing memory leak looking at following dump that I am getting when I use _CrtDumpMemoryLeaks() function.
Detected memory leaks!
Dumping objects ->
{45} normal block at 0x00861E80, 33 bytes long.
Data: < C > 00 43 00 CD CD CD CD CD CD CD CD CD CD CD CD CD
{44} normal block at 0x00860040, 40 bytes long.
Data: < K > 20 10 4B 00 19 00 00 00 00 00 00 00 00 00 00 00
Object dump complete.
So where is there exactly memory leak occuring ....? How to know it...?
Thanking in advance...
Mike
|
|
|
|
|
Hi,
If you allocate memory using malloc or calloc function you definitely delete memory using free function. Otherwise, you will get the error message.
See MSDN,
"Important Mixing the new and delete operators with the resizable memory-allocation functions on the same memory block will result in corrupted memory in the Debug version of MFC. You should not use realloc on a memory block allocated with new. Likewise, you should not allocate a memory block with the new operator and delete it with free, or use the delete operator on a block of memory allocated with malloc."
|
|
|
|
|
Did you use delete [] when deleting arrays?
Have your closed all the handles and objects you have opened? These two have caused big problems for us, often it isn't documented that something will allocate memory when you use it. Sometimes the process for freeing that memory isn't clear.
|
|
|
|
|
We have a CAD product which actually drives a HP designjet 430 36inches printer.We will draw some objects and we will create HPG files and will give that to HP designjet 430 printer.But plotout is coming upto 52 inches. An object which is more than 52 inches length it is not drawing completely. Could any one of you tell me what could be the reason for this. Please help me, because it is very urgent.
regards,
Pothirajan C
|
|
|
|