|
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.
|
|
|
|
|
|
hemlat wrote: But how can I communicate between different windows?
If you mean communicate between pages, see the PSM_QUERYSIBLINGS message.
"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
|
|
|
|
|
Hi at all,
how can I avoid symmetric NAT for RTP?
With the SIP Protocol all works fine.
But with RTP Streams there is the problem,
that sometimes the media data couldn´t be send.
Packetyzer shows that the packets were send to the Server
but then the packets will be lost.
The topology is following.
Registering on an Asterisk Registrar and then
sending SIP Messages to the same server. Then
I take the address from the SDP Package
and send the rtp data to this IP:PORT - Socket.
By analysing i.e SJPhone they do send the same packets
like me and doesn´t use a STUN or TURN server.
I tried to get the first incoming RTP Packet from server
and take the address the packet is come from.
But first is the same Address which will give over SDP
and it doesn´t work two.
Regards Karsten
|
|
|
|
|
My dialog based application is sending some messages to other application. I want to keep some time delay (some seconds) while sending messages. I tried to use delay method, but it is giving compile time error as undeclared variable. For delay I included dos.h header file.
Thanks in advance.
|
|
|
|
|
You should use a timer (see [^], [^]).
BTW the Win32 function to obtain some delay is Sleep [^], anyway, the timer route is far better.
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]
|
|
|
|
|
puppya wrote: I tried to use delay method, but it is giving compile time error as undeclared variable.
AFAIK, there's no delay function, you probably meant the Sleep function ? Anyway, that's probably not the best way to handle your problem because in that situation, your UI will be frozen while you sleep. You might want to take a look at timers (search on google to find example about timers with MFC).
|
|
|
|
|
Need HELP with FIFA09 :: Willing to pay
When 2 players play in the Multiplayer Option of Fifa09, its a peer to peer connection and once the game is over there is no record of the results.
Now what i need is something which shall hook to the game of fifa09 and record information as to when a game is initiated, joined, results/score, team selected and so forth.
To help the cause, i have stumbled across exactly what i am looking for in [Only registered and activated users can see links. ] where you can download a client "GamOn" which allows you to initiate FIFA09 within the application and after the match it sends records to some server whereby updating the gaming leauge information.
However its a propietary thing ..so it cannot be used....
My Research
The GamOn client has dedicated dll files for every game(for fifa09 its fifa09.dll) which supposedly does the hooking and after the match is over it updates the information to a server. (Tried to go through the decoded assembly of the dll but i am not really good in ASSEMBLY). The external functions of this dll seems quite trivial and maybe hooking to these functions and doing something might help the cause....not sure though...
There is another file dirtysock.dll which is installed along with the FIFA09 and after decoding the ASSEMBLY i saw that i has all the variables in the Strings section which we shall require.
So thats the jist of it. Please letme know whether anyone is interested to solve my problem and i am willing to compensate for the efforts.
BTW..i am not good in Programming/ASSEMBLY...
Regards Irfan
Keep Smiling.
irfan.hussain.wcg@gmail.com
yahoo:- irfy_nsu@yahoo.com
|
|
|
|
|
Signaled as such.
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]
|
|
|
|
|
i am sorry...actually i am very new and not quite used to this forum and community thing...
so if my post is an abuse i deeply apologize and lemme try to remove it...maybe..
thnk u...
|
|
|
|
|
If you really need a programmer the post your query inside the Job Board [^] (AFAIK you have to pay for that).
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]
|
|
|
|
|
Hello,
I have created one ICON listctrl.
Using API SetBkImage(hImg); I have set one bt map image as backround of the listcontrol.
But the problem is when i am scrolling the list the image is also geting scrolled.
Because the image is uneveo user can notice the image is being scrolled and it seems images are added in to background on after another.
Simply i want to make the background image stable it should not move with list items when i am scrolling the list.
Please help me!!
Thank
Vikas
vicky
|
|
|
|
|
To do so, you have to overide the WM_ERASEBKGND message of the list control and draw the image by yourself.
|
|
|
|
|
Hi all,
i m working on SDI type application.
how can i chk any dialog or any msg is open in application.
Because i want to hide or show application from System tray icon.
when any dialog or msg is opened than the main window is hide and the opened dialog or msg remain show.
please tell me any solution for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
See FindWindow API.
or
You can create a data structure to store all the open windows. Add/Remove an entry from the data structure on the basis of user closing or opening a window. If user opens one, Add it's name or a corresponding value and likewise if a window is closed remove the corresponding entry from the data structure.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Please can you explain me with example.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|