|
GetTimeZoneInformation will give you the (+900) part - but not the city list.
I suspect that only lives in the common dialog used, so you may be out of luck.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
For now i think that can be enough. Can you give me any sample code using that function.
|
|
|
|
|
Not without reading the documentation page, calling the function, looking at the contents of the TIME_ZONE_INFORMATION.
All of which you can do yourself.
(It's not a function I've used, it's one I found on msdn)
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi,
I have an xml file which I want to encrypt using Public /Private key encryption technique.
Could any body give info/code snippet or an sample project which has implemented Public Key encryption technique using public and private key pairs which I would use in my project.
Thanks & Regards.
|
|
|
|
|
Is here at CodeProject any article about?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
I have implemented dialog based application with a static text control on it, the length of static text changes dynamicaly, and I want to set the width of dialog box so that only static text should get display(single line), as per length of static text dialog box width get changes.
So please give me hint or solution.
Thanx
|
|
|
|
|
exactly what you need[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
crazy_sam wrote: So please give me hint or solution.
See the Extras section of this article.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks to everyone for your kind reply..
here is the position where I am now.
I am giving my re explaining my problem again.
There is absolutely no problem when I compile the program without a header file (which is a .h file of ACE framework) ie #include "Defines.h"
#include "conio.h"
#include "time.h"
#include "WaveRecorder.h"
#include "MultiXtR.h"
#include <queue>
#include <vector>
using std::vector;
using std::queue;
//#include "Defines.h"
class MultiXtrPortDigitalTapDriver
{
public:
...
static vector <int> m_staVecActivePorts;
static vector <int> m_staVecActiveExtention;
...
...
But when i include the header file ...it gives error...I think its clash/redefinition..
the errors are....
c:\program files\microsoft visual studio\vc98\include\ios.h(103) : error C2371: 'streambuf' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(255) : see declaration of 'streambuf'
c:\program files\microsoft visual studio\vc98\include\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(257) : see declaration of 'ostream'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : error C2371: 'ios' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(254) : see declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\istream.h(64) : error C2371: 'istream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(256) : see declaration of 'istream'
c:\program files\microsoft visual studio\vc98\include\iostream.h(66) : error C2371: 'iostream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(258) : see declaration of 'iostream'
Waveheader.cpp
Now, I need to include the defines.h (in order to use ace framework), and also I need to use the vector and list...
So please provide a solution..
Regards,
Himangshu
<div class="ForumMod">modified on Monday, February 9, 2009 11:21 PM</div>
|
|
|
|
|
When you want to use < characters in messages, you have to check the "Ignore HTML tags in this message" because we can't see anything. And it's quite difficult to help you then...
Anyway, did you include the header file of the class that you are using as template parameter for your vector (I don't know what it is because I can't read it).
|
|
|
|
|
Thanks cedric,
Yes, I have used the header file
#include <vector>
Thanks
I am a learner Always
|
|
|
|
|
No, I was talking about the header file of the class which you are using as template parameter for the vector. So, the class which is between the < > (if it is a class).
But please, edit your first message and follow my advice, otherwise people won't be able to help you much.
|
|
|
|
|
I get it correct by using
#include "iostream.h"
using namespace std
No problem at all.It works fine.
But, I don't want to use the header file(iostream) since there is again a conflict between some functions with ace framework,which I am using in my program.
Thank you
I am a learner Always
|
|
|
|
|
himangshuS wrote: #include "iostream.h"
You should include <iostream> instead. The .h version is deprecated.
|
|
|
|
|
For vector you need only include vector.
#include <vector>
using namespace std;
«_Superman_»
|
|
|
|
|
«_Superman_» wrote: For vector you need only include vector.
Yes, but you have to define what the vector will contain. If the vector should contain objects of type "MyClass", then obviously you have to include the header file of "MyClass". That's what I was telling him. But as we can't see anything from his post, it was just a guess.
|
|
|
|
|
Oh yes... Your reply in the other branch of this thread.
«_Superman_»
|
|
|
|
|
Thanks to everyone for your kind reply..
here is the position where I am now.
I am giving my re explaining my problem again.
There is absolutely no problem when I compile the program without a header file (which is a .h file of ACE framework) ie #include "Defines.h"
#include "conio.h"
#include "time.h"
#include "WaveRecorder.h"
#include "MultiXtR.h"
#include <queue>
#include <vector>
using std::vector;
using std::queue;
//#include "Defines.h"
class MultiXtrPortDigitalTapDriver
{
public:
...
static vector <int> m_staVecActivePorts;
static vector <int> m_staVecActiveExtention;
...
...
But when i include the header file ...it gives error...I think its clash/redefinition..
the errors are....
c:\program files\microsoft visual studio\vc98\include\ios.h(103) : error C2371: 'streambuf' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(255) : see declaration of 'streambuf'
c:\program files\microsoft visual studio\vc98\include\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(257) : see declaration of 'ostream'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : error C2371: 'ios' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(254) : see declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\istream.h(64) : error C2371: 'istream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(256) : see declaration of 'istream'
c:\program files\microsoft visual studio\vc98\include\iostream.h(66) : error C2371: 'iostream' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\iosfwd(258) : see declaration of 'iostream'
Waveheader.cpp
Now, I need to include the defines.h (in order to use ace framework), and also I need to use the vector and list...
So please provide a solution..
Regards,
Himangshu
I am a learner Always
modified on Monday, February 9, 2009 11:16 PM
|
|
|
|
|
use the "Ignore HTML tags in this message (good for code snippets)" option when posting code,
or use the 2 buttons ">" and "<" to replace the hard-coded < > in your code snippet.
This signature was proudly tested on animals.
|
|
|
|
|
Hi all,
This is what I did (VC++ 6.0):
1. Add a new dialog
2. Insert ActiveX Control: Microsoft Web Browser (which added CWebBrowser2 class)
3. Add the object in the dialog
4. Create a variable for that object (CWebBrowser2 m_ctlBrowser;)
Now, so far so good. I can go to the website I want.
My question is: once I am in the desired website which prompts user input, I want to be able to simply press a button to fill it out. Let's say I already put the cursor there and there is only one "edit box" to fill.
Is this doable? Thanks for any suggestion.
|
|
|
|
|
Hi all,
If any application is running,when we right click on it over task bar a menu diplayed that is having menu items like Restore, Move, Size, Minimize, Maximize and close.
in any sdi type application if any dialog box or Message box or any other window is open ,this menu not displayed even i right click on task bar.
i want to add this feature on system tray icon.
i want if any dialog box or Message box or any other window is open ,so for right click on system tray icon the Menu not displayed.
Is this functionality is possible to implement on System Tray Icon.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
You already got answers.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes now i understand what can i do.
thanks.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi,
I am able to create wizards(type of Dialogs as tabs) by using CPropertyPage and CPropertySheet.But how can I communicate between different windows?
In one of my window I am having one button.If I click on that button it should show another window.
Rekha.
|
|
|
|
|