|
Do some form of HHTP reuest against your server to see if a 'newer' file exists. Then download the new file as 'text' so it can pass through HTTP and the firewall, then replace your old command file with the new one.
|
|
|
|
|
Thank you
ALL YOUR BASE ARE BELONG TO MICROSOFT!
Demonware Studios Leader
|
|
|
|
|
I'm working on a CEdit derived class that requires that I put a bit of text in the window on creation. I'm doing this in PreSubclassWindow, which may or not be the right place for it but it works. The problem I'm running into is the cursor positioning. If I use SetSel(0,0) in PreSubclassWindow the text ends up being completely highlighted. For the moment I've included a SetSel in the SetFocus handler. But this isn't practical long term. Without any attempt at setting the position selector I still get a completely highlighted edit space.
Where would be the best place to set the original position?
Thanks,
Lilith
|
|
|
|
|
|
Could you please give me some idea on the best C++ compiler available for an Windows XP Pro system? I'd like to do some simple tasks that might include graphics. Are there free compilers that I should try? Thank you.
|
|
|
|
|
Please post this in the Lounge[^] You will get more replies. This is the visual c++ forum.
Aljechin Alexander
|
|
|
|
|
|
I'm sorry to contradict you but I found that Dev-cpp is plain crap (to be polite ). It has too many bugs, it is slow, the debugger is totally unusable, the tabulations management (when you go to a new line) makes you loose more time than it makes you gain, the IntelliSense is slow and makes your program 'hang' during the time it searches for the class members, ...
Compared to Visual Studio, there is just simply no comparison possible. It is a completely different product.
-- modified at 3:45 Thursday 19th January, 2006
PS: this is not to take as an 'aggressive' post . I'm just describing my own experience with Dev-cpp
|
|
|
|
|
Yeah you are right. But he asked for free compilers to try out. There is no comparison with VS.
Cedric Moonen wrote: I'm sorry to contradict
Feel free. That's what we are here for. To kick and to get kicked.
Cedric Moonen wrote: PS: this is not to take as an 'aggressive' post . I'm just describing my own experience with Dev-cpp
My experience was much better.
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
The best is undoubtedly VC++2005, it will let you do GDI, GDI+, DirectX, and WPF in the not too distant future.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
this is a Visual C++ forum buddy, which means that almost here is using VC6, VC2002/2003 and/or VC2005...
if you're looking for something free, then don't ask this here. may the lounge help you, otherwise search for another site which is not dedicated to Microsoft technology
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
VC2005 Express is actually free
|
|
|
|
|
I think VC IDE framework is pretty cool. I want to implement my project appearance like it. Dockable project window, debug output and so on... Is there anybody give me clue how to implement it?
Richard Luo
|
|
|
|
|
|
Try using the CSplitterWnd class
that will help u in developing such a project.
But u dont get anything readymade , u need to
put up ur own code for ur ideas.
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
I have an MDI application which works with a database. A new CDialog was added to the MDI, and now i want to make some calls to the database. There is a Callback mechanism already implemented in the app, which i will be using for recieving values back from database. I prefer to start a new thread, which will be independent of the main GUI thread to pass on values to the database. Can anyone tell me how can i create a new thread inside my CDialog to make calls to database?
Another thing i wanted to know is, how to use WaitForSingleObject, i would like to wait in the thread till i get the response back from database and then to update it in the CDialog. I would appreciate if you could tell me how to use WaitForSingleObject?
|
|
|
|
|
First you would need to find out if the database is actually thread safe. Unless there is a compelling reason to use multiple threads I suggest you don't: writing multithreaded applications is hard. Debugging buggy multithreaded applications can be a nightmare.
Steve
|
|
|
|
|
Hihi,
I'm trying to use CreateFile to check whether or not a certain device is connected to the serial port. Here's the code:
HANDLE testport = CreateFile("\\\\.\\COM1",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL );
It's failing, and GetLastError is returning 87, ERROR_INVALID_PARAMETER.
This portion of the code is for WinCE, for WinXP I use "COM1:" instead of "\\\\.\\COM1"
Anyone know what could be wrong?
The device is connected to the COM port, so the result should not be a failure.
Kelly Ryan
|
|
|
|
|
The Windows CE documentation for CreateFile in MSDN says that for a com port, you must include the colon after the name, and makes no mention of the need for the \\.\ beforehand. I'm no CE expert, but why are you using different filenames for CE and XP?
|
|
|
|
|
The code is pulled from another project we have here which deals with both WinCE and XP and those are the names it uses. I started out with both the same and after I was having problems, took a look at that code and decided to try it instead since it seems to work in the other project. Unfortunately it doesn't work either.
Kelly Ryan
|
|
|
|
|
With a bunch more messing around, now it produces error 2, ERROR_FILE_NOT_FOUND instead of error 87. Does anyone have any ideas??
Kelly Ryan
|
|
|
|
|
Finally got it; I had to print the com port name into a TCHAR before I passed it to CreateFile. Bleeh...
Kelly Ryan
|
|
|
|
|
Hi experts,
How can I read the file header to determine the type of the file?
Let say, the pdf ile will have %pdf in the header. So after reading the header, I can decide which application to use to open that file.
|
|
|
|
|
To do this effectively would be hard. The FindMimeFromData API may be of interest to you however.
Steve
|
|
|
|
|
i know it would be hard.
but i already have the list to of file extension and its magic code to identified which type of file.
just need to know how to read the file header. I remember I did read file header in college. but i just dont' really sure if I had used reading file in binary fomrat for header.. couldnt' do it anymore. If any of you know how to read the file header, please help me out.
Thanks
|
|
|
|