|
Why not create a small second program point all users links to it, this second app could do all of the updating then start the main application. Sounds like the easiest solution to the problems.
I don't know anything (at this point) about managed extensions. Which is hear nor there really for the problems your having, I have always felt apps should be run locally unless its on a very small LAN, why use any more network bandwidth than you absolutely need?
|
|
|
|
|
The problem which I don't know how to solve with your suggestion is that I don't know what directory is used for my application. However, if I put the second app in the target directory I would know to load to that directory on the local drive.
I agree about not eating up network bandwidth and an addtional advantage here would be it wouldn't eat up much just to get the time stamp each time, with an occasional download when necessary.
|
|
|
|
|
IlanTal wrote: I don't know what directory is used for my application.
// Vars //
char szAppPath[MAX_PATH] = "";
CString strAppDirectory;
// Get the path to the running application //
::GetModuleFileName(0, szAppPath, sizeof(szAppPath) - 1);
// Extract directory
strAppDirectory = szAppPath;
strAppDirectory = strAppDirectory.Left(strAppDirectory.ReverseFind('\\\'));
GetModuleFileName[^]
IlanTal wrote: I put the second app in the target directory I would know to load to that directory on the local drive.
If I understand the question correctly your uncertain about how it all should be set up.
In the same directory put these files.
\Laucher.exe (does the updating and lanches the myapp.exe)
\MyApp.exe (Your real application)
\MyHelp.chm (Your help file)
\MySettings.ini (Settings, where on the network are your binaries located, cause those pesky network admins change directories occasionally)
|
|
|
|
|
I think we are saying the same thing but don't realize it.
I understood your suggestion to be an app ON THE NETWORK DRIVE. My reply was I know what to do if the app is on a local drive, but I don't know the local drive, directory if the launching app is on the network drive.
I think I basically misunderstood you when I thought you meant it to be on the network drive.
|
|
|
|
|
IlanTal wrote: if the launching app is on the network drive
Put the launching app on the local PC, that way it has full access to the local machine.
IlanTal wrote: I think I basically misunderstood you when I thought you meant it to be on the network drive.
Sorry about any confusion, hope it's cleared up now.
|
|
|
|
|
Thanks for all your comments.
It just goes to show that sometimes the solution comes from an unexpected direction.
|
|
|
|
|
IlanTal wrote: Thanks for all your comments.
Your welcome.
:->
IlanTal wrote: It just goes to show that sometimes the solution comes from an unexpected direction.
I don't normally troll the C++/CLI board. Just by chance I saw the post for help with a help file. Having spent my fair time scratching my head over issues dealing with chm files I thought I would take a look.
It's always to help others...
|
|
|
|
|
How to convert DWord to int?
|
|
|
|
|
This is a C++ question so you should post it in the Visual C++ forum. This forum is for managed.
Anyway for your question, just cast it:
int iValue = (int)dwValue;
And even the cast operator is not required.
|
|
|
|
|
I am using ADOX (At least i want to)
I have found serval sites on examples. But i can't make it work.
How can i use ADOX to open database? ADOX is COM object. Can i have an example?
I need this in C++/CLI.
Second question: Where can i find any tutorial on ADOX in C++/CLI, MC++, VB.NET or C#. Using .NET framework 1.0, 1.1 or 2.0. I can esaly convert from one to C++/CLI if they are using .NET framework. (Only syntax is diffrent)
Thanks in advance.
|
|
|
|
|
Hi
I am writing a console program. I want to put it on my website, and I need people to connect VIA telnet. I have no idea how to use anything with telnet. I am writing this program using C++, and for beginning, I just want the ability to chat through my program VIA telnet, then I can easily go from there. Please help me out. Thnx
|
|
|
|
|
I'd suggest that you should ask this in the visual C++ forum, unless you're using C++/CLI ( managed C++ ). I have to admit, the .net framework probably offers a lot of support in this area.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm using Visual Studio 2003 for an MFC project, and every once and a while (more frequently lately) some of my menu IDs convert from the ID representation (e.g. "ID_FILE_HELLO_WORLD" to the number (e.g. "20412").
Has anyone else seen this bug, and if so, how can I avoid it? It's driving me nuts!
Warren
|
|
|
|
|
I'm writing an application which will change the PCs IP settings (IP, gateway, DNS, etc)
Any pointers on how to do this? Thanks, mutty
|
|
|
|
|
Im using the SIDT command to get the IDT base address.
when i do so sometime i get the known address 8003f400 and sometimes i get another address fff7b260.
How can it be that the sidt returns 2 different addresses?
There is no other process that change it.
Maybe its some new architecture of intel...I dont know...
someone knows about this problem?
Itzik.
|
|
|
|
|
Definitely the wrong forum for this topic. CP does not have a forum dedicated to assembler programming, but you could try the VC++ forum (though to be honest, that's not the right forum too). But someone might just be able to help you out.
Regards,
Nish
|
|
|
|
|
Try to run in debbuging mode. Or you can set from Project Setting->Debugging->Debugging type to Mixed or Native.
in VS2005 set to automatic, it will only crash app and ask to send data to microsoft.
|
|
|
|
|
Can anyone help me in making a source code for a profeller
EXAMPLE
enter a number[1-10]: 5
*****
* ****
** ***
*** **
**** *
***** *****
* ****
** ***
*** **
**** *
*****
pls can someone help me....
|
|
|
|
|
A few for-loops will do this I think (if I got your "profeller" right). Try it out and post here if you run into further trouble.
Regards,
Nish
|
|
|
|
|
Hi,
I need to write a program that controls a camera we use in the lab and get the data. But to do that we need to call some system dll's. We are actually using Matlab for data processing, but I couldn't call some functions because they need pointers, and Matlab apparently doesn't support pointers.
My next option was to get the data from the camera using (visual) c++ and then pass it over to Matlab for processing. But to do that, I need to access some system dlls. Does anyone know how to do that in C++, of if it is possible at all?
PS- if anyone knows anything about making pointers in Matlab, that would be greatly useful too.
thanks
A.S.
|
|
|
|
|
This is the wrong forum for this question. Try the VC++ forum.
Regards,
Nish
|
|
|
|
|
I am building a Form Application using Borland C++ Builder. I want to enable the XP style on all controls in the application. As there is no XP manifest component like the one in Delphi, I put an XP-manifest XML file in the directory of the executable. The problem is only some controls change their appearance. For example the TButton control changes but the TGroupBox does not? Do you know how I can change the style of all controls?
Thank you!
modified 9-Mar-17 17:22pm.
|
|
|
|
|
|
Go and seek out LMD Tools[^]. Even the free edition does what you need -- you just use, for example, the LMD-tool GroupBox instead of the regular group box, etc.
[Yes, I know he asked this in the wrong forum -- is there one for C++Builder? He's probably long gone anyway, but since I know the answer I decided to put it up here in case some other seeker of such knowledge comes along.]
|
|
|
|
|
In a previous message I described a problem with a managed c++ program over the LAN.
In the same z: drive which is mapped back to my local drive, I tried a compiled help file.
It works fine when I run it from the local drive, but when I run it from drive z: I get
Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.
--------------------------------------------------------------------------------
Does anyone know what is going on here?
Thanks,
Ilan
|
|
|
|