|
What is the name of the structure and where have you defined it?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I appears that the VC 6.0 wizard has a problem using struct as a function variable. If I add all the necessary code manually it works as expected,but in the file tab the VC editor cannot find the function definition.
It would be interesting to know if never VS have same problem.
For now call it hacked.
Here is "normal" definition / declaration I am using
Declaration
struct NewTest
{
int a;
}aa,bb,*CC;
struct TEST
{
int a;
}a,b,c,*d;
int Test(struct TEST );
void TestOne(struct NewTest *);
Definition
int CStructTestView::Test(struct TEST a)
{
return 0;
}
void CStructTestView::TestOne(struct NewTest *d)
{
}
I have no clue where did this &xxx junk came from.
|
|
|
|
|
Hi, guys, I'm writing simple tool for interest, like managing softwares, file association or IE history.
But when I get into this field, I find there are many information stored in files or registry. Like "index.dat" or "HKLM\SOFTWARE\Clients".
So I want to know, where I can get more information about such thing( registry about shell )?
Thanks in advance.
|
|
|
|
|
Firstly - stop cross-posting this all over the site.
Secondly - Sounds like you're trying to write some kind of spyware or worse. Actually, I'm rather sure about it. Get lost.
|
|
|
|
|
I don't where this should be post really, so this is my fault.
But what I want to write is just one assistant, I still got no reason to write things like you said.
In fact, I know 90% of it already from google or friends.
I just want to know where I can get official and overal topics about these.
MSDN talks some scattered.
|
|
|
|
|
In the moment, we have a multiple language software - including English, Chineses simple and trudition, Japanese, French, Korean and more in the future.
We used inno setup before.but it only supports english.
Now I need a unicode installation pack, user can select a language in install process.
Do you know which installation software can do this?
Thanks.
|
|
|
|
|
InstallShield[^] is the most widely used installation software.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi everyone!!
I have a scientific C++ program which requires a good speed to run.(the program runs a lot of matrix and vector operations)
For doing that, I come across following options on the net:
1. Use of turbo C++
2. Use of Linux instead of window XP
My current system uses Dev C++ over Window XP.
Can I expect some speed increase using above options?
If so, would it be significant?
Thanks
modified on Saturday, August 8, 2009 5:55 PM
|
|
|
|
|
auto9817 wrote: Can I expect some speed increase using above options?
If so, would it be significant?
I did read that the Intel compiler creates "best" (here in the meaning of fastest) code on Intel processors, compared to Microsoft's VC and GCC. Never used it myself and I don't have a link to an up-to-date statistics, Wikipedia mentions something about optimizations[^].
However, design and architecture improvements can give more dramatic improvements, e.g. reduce complexity in algorithms, profile for bottlenecks, rewrite for parallel processing on CPUs with multiple cores, outsource matrix operations to GPU... to name some possibilities. Those things are outside the possibilities of a compiler (automated tool) but could be worth to check.
Turbo C++ still exists?
Hope it helps.
modified on Saturday, August 8, 2009 6:52 PM
|
|
|
|
|
I would first suggest using VS2008 compiler (which I believe you're not using) first; then
if you have the time and money, try the Intel compiler, it might be a little bit faster
in some operations, especially ones where the use of specific CPU hardware instruction codes
(SSE, ...)
If your matrix and vector operations work on large scale matrices, I would highly suggest
investing the in the Intel compiler AND the Intel MKL (math kernel library)
This signature was proudly tested on animals.
|
|
|
|
|
Hi experts,
I have an Application in MFC using single dialog window.
Problem i am facing is, it exits when i press escape key.
i want it to exit when i press "Exit" button that i made my self and also by pressing "x"(default close button provided in dialog) button on top right corner of window but not by "esc" key.
I tried emptying the implementation of "OnCancel" function. It solves the problem of "esc" key, but it also disables, exit when i press "x" button.
Please help me, it is very annoying when i accidentally press exit and window goes away.
If possible, tell me way to add, minimize button along with "x"(close) button on the top.
Regards,
Swinder....
|
|
|
|
|
Add an OnSysCommand[^] handler that watches for SC_CLOSE and calls __super::OnCancel() when it hits.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
David,
That FAQ answered many other questions. Thanks for its post.
|
|
|
|
|
Also, one use use PreTranslateMessage to intercept the ESC key. Add the function to the dialog using the class wizard, then check for the ESC key.
BOOL CDxf2NastranDlg::PreTranslateMessage(MSG* pMsg) <br />
{<br />
if(pMsg->wParam == VK_ESCAPE) { return TRUE; }<br />
<br />
return CDialog::PreTranslateMessage(pMsg);<br />
}<br />
|
|
|
|
|
Hi,
I want to read Text File line by line and code follows;(with out using the << operator and char buffer)
ifstream Textfile;
Textfile.open(strFilePath,ios::in);
string value;
while(!Textfile.eof())
{
getline(Textfile,value);
}
Textfile.close();
When i am compiling the above code it throws the error as
error C3861: 'getline': identifier not found, even with argument-dependent lookup
How to rectify this error.. Any other sample Code??
reg,
Subbu
|
|
|
|
|
Did you #include <string> ?
Also, basic_istream has a member getline() , maybe try using that one?
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Make sure you're including a using namespace std; line as well.
Dybs
|
|
|
|
|
Hi, is it possible to draw the background of a status bar with UxTheme.dll ? I was browsing through available XP Visual style controls[^], but can't find the status bar background.
Thanks for any help. I looked into existing articles here at CodeProject, which usually derive from CStatusBar (to get the background) and then extend it. I like to find out if it's possible to make an owner-draw control without using the standard status bar control at all.
Cheers!
|
|
|
|
|
|
Thanks but my question is not about subclassing.
|
|
|
|
|
Yes, it works like for all controls, with DT
(see on Win32 ng[^] for code, in C/Win32)
|
|
|
|
|
hi i try to convert code but i dont know how put bass in the code C# to C++ by example here
class NAME() : base();
{
bla.item;
}
base.item;
how i can pass it to C++
and the variables private in C# repeat the private keyword
private variable1;
private variable2;
in C++ its the same way do this?
private:
variable1;
variable2;
|
|
|
|
|
That is not C# code.
Can you re-state your example?
David Anton
http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
|
|
|
|
|
Can anyone tell me why i receive right data in case of traditional chinese but not in Simplified Chinese... I'm searching and experimenting "How to display right data in GUI" in case of "Simplified Chinese Character", But nothing seems to work..
So i just need to know why my applications(Non Unicode) is able to display right data in GUI in case of traditional chinese, but not in simplified chinese?
P.S
I'm reading data from text files, which are encoded in UNICODE.
Thanks.
|
|
|
|