|
Hi,
You can find descriptions of the GIF file format here:
http://www.wotsit.org/ (Graphics section)
Maybe you should first check if a new version of that library is available
(or maybe get another one
Cheers,
Cristi
|
|
|
|
|
If you know how to parse the header section of the GIF file, then look for the 0xFF flag indicating an application-specific extension, and if found and you have a buffer, check for the string "NETSCAPE2.0" -- that's the indication for an animated GIF.
==================
The original message was:
Hello I have to know that file .gif is animated or not !!! because my library display Gif not support Animated Gif it will crash when open Animated. My idea is do check myself that is Animated or not !!! but I don't know what to do ??? Any Idea ???
Thank you
|
|
|
|
|
I would appreciate any info on tapi. I wish to write a simple app to enable me to send
wave files to modem eg. simple answer phone. I struggled to understand examples in
MSDN so if anybody can assist it would be much appreciated.
|
|
|
|
|
==================
The original message was:
I would appreciate any info on tapi. I wish to write a simple app to enable me to send wave files to modem eg. simple answer phone. I struggled to understand examples in MSDN so if anybody can assist it would be much appreciated.blabla
|
|
|
|
|
I try find source for read JPEG icon
like MakeBmpFromFile function in VC++ 5
but I need this for VC++ 4 project
Thank you for your help
Roni
|
|
|
|
|
The source is available at www.jpeg.org
Regards,
Dmitriy
==================
The original message was:
I try find source for read JPEG icon like MakeBmpFromFile function in VC++ 5 but I need this for VC++ 4 project
Thank you for your help
Roni
|
|
|
|
|
Is there somebody who has communicated with
serial port (RS485).
Any example would be great.
Thanks
|
|
|
|
|
RS-485 communication is actually exactly the same as RS-232 communication. Only the hardware is a bit different.
In WIN32, this is fairly easy. You use the COM port just like a file. You open the port with CreateFile and supply e.g. "COM2" as the filename.
You have to call SetCommTimeouts to specify the timeout values and SetCommState to specify baudrate, parity and the like. The you just call ReadFile and WriteFile for your communications and CloseHandle when you're finished.
When using RS-485, you will likely use the DTR/RTS mechanism. You can change the state of these lines by calling EscapeCommFunction.
==================
The original message was:
Is there somebody who has communicated with serial port (RS485). Any example would be great. Thanks
|
|
|
|
|
==================
It depends if you have a card capable of driving RS485 installed on your PC. If you have you should be able to configure your interrupts on that card so that they may be on say COM3 or COM4. If you haven't got a card you can get a RS232 to RS485 converter and communicate through COM1 or COM2 on your PC's serial ports.
|
|
|
|
|
I use a National rs-485 card and the ports are used just like rs-232 as for as the win32 API
is concerned. So all standard serial port programming techniques apply. What specifically is
the problem? Any external devices attached to the rs-485 line always have their own specific
protocols, and you just have to get their manuals and do the work yourself.
==================
The original message was:
Is there somebody who has communicated with serial port (RS485). Any example would be great. Thanks
|
|
|
|
|
Use a RS232/RS485 convertor and all the WIN32 API calls will work. U may have to set RTS control to RTS_CONTROL_TOGGLE for 2 wire operation.
Prashanth
==================
The original message was:
Is there somebody who has communicated with serial port (RS485). Any example would be great. Thanks
|
|
|
|
|
Does a SHAppBarMessage wrapper exist? I would like to implement a ApplicationBar, and was just wondering before I go and write one myself.
Thanks in Advance
John Mancini
|
|
|
|
|
The best one I have found is at http://indigo.ie/~pjn/ntray.html
however I also think there is one on this site by Chris Maunder - investigate each and the decide for yourself.
==================
The original message was:
Does a SHAppBarMessage wrapper exist? I would like to implement a ApplicationBar, and was just wondering before I go and write one myself.
Thanks in Advance John Mancini
|
|
|
|
|
Hi John,
There was a very good article on this topic in MSJ (it was published in 1996, unfortunately I don't remember the month). Anyway you can find the copy of the article on MSDN CD. You just have to search the library for: "SHAppBarMessage" or "Jeffrey Richter". The title of the article is "Extend the Windows 95 Shell with Application Desktop Toolbars"
Regards,
Andrei Zenkovitch
Dundas Software
==================
The original message was:
Does a SHAppBarMessage wrapper exist? I would like to implement a ApplicationBar, and was just wondering before I go and write one myself.
Thanks in Advance John Mancini
|
|
|
|
|
How do I monitor browser activity such as Explorer Netscape and AOL etc like ICQ doe to get the current users URL?
TIA
Shaun Wilde
|
|
|
|
|
Attach to the iexplore.exe process and event sink to the web browser events. Then when the event occurs, like the url changing, you will recieve the event and can do what you want with it. There is an example on how to do this in an MSJ article back aroudn July 98
I also have experience doing this and could help you directly, just let me know.
-Erik
==================
The original message was:
How do I monitor browser activity such as Explorer Netscape and AOL etc like ICQ doe to get the current users URL?
TIA
Shaun Wilde
|
|
|
|
|
I'm trying to create a static lib with a simple class
that has a single method that returns a std::string. I
can build the static library just fine but when I link
my application against the static library I get an error
about multiple defines of std::basic_string.
Has anyone done this successfully?
Thanks,
Brad
-------------------------------------------------------
My header file:#if !defined( __CTest_h__ )
#define __CTest_h__
class CTest {
public:
CTest();
~CTest();
std::string Try( void );
};
#endif
------------------------------------------------------
The corresponding .cpp file:
#include "StdAfx.h"
#include "CTest.h"
CTest::CTest(
void
) {
}
CTest::~CTest(
void
) {
}
std::string CTest::Try(
void
) {
std::string strResult = "testing";
return strResult;
}
--------------------------------------------------------
<string> is #included in StdAfx.h
|
|
|
|
|
For one, you aren't directly including the <string> header file as far as I can tell...that might have something to do with it. Of course, it might just be easier to use CString instead of string (it is what MFC uses anyway and it basically offers the same functionality).
==================
The original message was:
I'm trying to create a static lib with a simple class that has a single method that returns a std::string. I can build the static library just fine but when I link my application against the static library I get an error about multiple defines of std::basic_string.
Has anyone done this successfully?
Thanks, Brad -------------------------------------------------------
My header file:#if !defined( __CTest_h__ ) #define __CTest_h__
class CTest { public: CTest(); ~CTest();
std::string Try( void ); };
#endif
------------------------------------------------------ The corresponding .cpp file:
#include "StdAfx.h" #include "CTest.h"
CTest::CTest( void ) { }
CTest::~CTest( void ) { }
std::string CTest::Try( void ) { std::string strResult = "testing";
return strResult; }
--------------------------------------------------------
<string> is #included in StdAfx.h
|
|
|
|
|
That should read you aren't directly including the < string > header file
==================
The original message was:
For one, you aren't directly including the <string> header file as far as I can tell...that might have something to do with it. Of course, it might just be easier to use CString instead of string (it is what MFC uses anyway and it basically offers the same functionality).
================== The original message was: I'm trying to create a static lib with a simple class that has a single method that returns a std::string. I can build the static library just fine but when I link my application against the static library I get an error about multiple defines of std::basic_string.
Has anyone done this successfully?
Thanks, Brad -------------------------------------------------------
My header file:#if !defined( __CTest_h__ ) #define __CTest_h__
class CTest { public: CTest(); ~CTest();
std::string Try( void ); };
#endif
------------------------------------------------------ The corresponding .cpp file:
#include "StdAfx.h" #include "CTest.h"
CTest::CTest( void ) { }
CTest::~CTest( void ) { }
std::string CTest::Try( void ) { std::string strResult = "testing";
return strResult; }
--------------------------------------------------------
<string> is #included in StdAfx.h
|
|
|
|
|
Sorry the '<' & '>' in my orriginal post were
treated as html; < string > is #included in the
stdafx.h.
1. I do not use 'using namespace std' because that
I want to use the namespace and not just ignore
it, therefor I scope all of the stl strings with
std::. This works very well.
2. I am not using CString because I don't want to
use MFC for this and because I am using string in
this example when I also want to use stl vector
and map classes.
3. No one has addressed my original problem which is
multiple defines. The code for the static library
builds just fine. I am getting the multiple defines
in the application that also uses stl and links with
my static library.
Brad
==================
The original message was:
For one, you aren't directly including the <string> header file as far as I can tell...that might have something to do with it. Of course, it might just be easier to use CString instead of string (it is what MFC uses anyway and it basically offers the same functionality).
================== The original message was: I'm trying to create a static lib with a simple class that has a single method that returns a std::string. I can build the static library just fine but when I link my application against the static library I get an error about multiple defines of std::basic_string.
Has anyone done this successfully?
Thanks, Brad -------------------------------------------------------
My header file:#if !defined( __CTest_h__ ) #define __CTest_h__
class CTest { public: CTest(); ~CTest();
std::string Try( void ); };
#endif
------------------------------------------------------ The corresponding .cpp file:
#include "StdAfx.h" #include "CTest.h"
CTest::CTest( void ) { }
CTest::~CTest( void ) { }
std::string CTest::Try( void ) { std::string strResult = "testing";
return strResult; }
--------------------------------------------------------
<string> is #included in StdAfx.h
|
|
|
|
|
In your stdafx.h put the following
#include <string>
using namespaces std;
the second line allows you to just make your declarations like so:
string strmystring;
string = "This is a string";
==================
The original message was:
I'm trying to create a static lib with a simple class that has a single method that returns a std::string. I can build the static library just fine but when I link my application against the static library I get an error about multiple defines of std::basic_string.
Has anyone done this successfully?
Thanks, Brad -------------------------------------------------------
My header file:#if !defined( __CTest_h__ ) #define __CTest_h__
class CTest { public: CTest(); ~CTest();
std::string Try( void ); };
#endif
------------------------------------------------------ The corresponding .cpp file:
#include "StdAfx.h" #include "CTest.h"
CTest::CTest( void ) { }
CTest::~CTest( void ) { }
std::string CTest::Try( void ) { std::string strResult = "testing";
return strResult; }
--------------------------------------------------------
<string> is #included in StdAfx.h
|
|
|
|
|
I write a lot of "smallish" custom C++ apps and am always interested in understanding the actual amount of time spent on each project. (Perhaps similar to the File-Properties information provided in Microsoft Word.)
Is there a DevStudio Add-In that tracks time in a project/workspace? If not, I'd be interested in other (preferably automated) approaches.
|
|
|
|
|
I don't know if there is an add-in, but it wouldn't be that hard to write yourself a quick little program that tracks the time (select the project from a dropdown list or something and then hit the start button to start tracking, hit the stop button when you go on break etc.). It might take 15 minutes or so to write.
==================
The original message was:
I write a lot of "smallish" custom C++ apps and am always interested in understanding the actual amount of time spent on each project. (Perhaps similar to the File-Properties information provided in Microsoft Word.)
Is there a DevStudio Add-In that tracks time in a project/workspace? If not, I'd be interested in other (preferably automated) approaches.
|
|
|
|
|
I think he means something different.
No everybody will remember to press the buttons.
It should work automatically - when your open a project it should start, when you close - finish. Also take care abourt right counting time while your another application is active and VC++ is sleeping
==================
The original message was:
I don't know if there is an add-in, but it wouldn't be that hard to write yourself a quick little program that tracks the time (select the project from a dropdown list or something and then hit the start button to start tracking, hit the stop button when you go on break etc.). It might take 15 minutes or so to write.
================== The original message was: I write a lot of "smallish" custom C++ apps and am always interested in understanding the actual amount of time spent on each project. (Perhaps similar to the File-Properties information provided in Microsoft Word.)
Is there a DevStudio Add-In that tracks time in a project/workspace? If not, I'd be interested in other (preferably automated) approaches.
|
|
|
|
|
That wouldn't be much harder. Just enumerate the windows to search for a title contianing "Microsoft Visual C++" on one of them, and then store the window's HWND value and use a thread to constantly check the status of the window and update the time (maybe every minute or so, so that it doesn't take up too much proccessor time...or every 5 seconds or so...it all depends on how accurate you really want to be). The title comes in something like the following format: "PROJECT NAME - Microsoft Visual C++ [CURRENT FILE INFORMATION]". When the PROJECT NAME part changes, or the window is closed, or the window and its children are not active, the clock stops counting for the listed project. On program exit and entrance, it would load past project values and save new project information. A simple combo-box interface could allow you to view the status of each project, reset timers, etc.
==================
The original message was:
I think he means something different. No everybody will remember to press the buttons. It should work automatically - when your open a project it should start, when you close - finish. Also take care abourt right counting time while your another application is active and VC++ is sleeping
================== The original message was: I don't know if there is an add-in, but it wouldn't be that hard to write yourself a quick little program that tracks the time (select the project from a dropdown list or something and then hit the start button to start tracking, hit the stop button when you go on break etc.). It might take 15 minutes or so to write.
================== The original message was: I write a lot of "smallish" custom C++ apps and am always interested in understanding the actual amount of time spent on each project. (Perhaps similar to the File-Properties information provided in Microsoft Word.)
Is there a DevStudio Add-In that tracks time in a project/workspace? If not, I'd be interested in other (preferably automated) approaches.
|
|
|
|