|
abbd wrote: MessageBox("my message") dont work in Visual Studio 2005
What do you mean by "dont work"??
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
it apear MessageBoxW("..........."), and not MessageBox; i work with MFC application, i wouls show message.
|
|
|
|
|
abbd wrote: it apear MessageBoxW
Appears where? I can't see what's going on there so please be specific!
Maybe your project needs to be compiled with unicode enabled?
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
ok
When you write a code for exemple, 'messageBox' and you pass a cursor of mouss, it apear MessageBoxW and it return int, i woul show amessage .thank you
|
|
|
|
|
That's fine. Most of the windows APIs have both ANSI and Unicode versions (in the case of
MessageBox() there's MessageBoxA() and MessageBoxW()). If you are seeing MessageBoxW then that
means your app is being compiled for Unicode.
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
but why i can show a message, when write Messagebox.show don't work, like printf !!!, i have a Mfc application
|
|
|
|
|
I'm sorry I'm not understanding. What are you trying to do - show a message box or use printf?
And what is not working - It's not compiling? Not working a runtime?
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
Thank you very mutch to answer my questions , but last thinks, when i add Netica.lib on Linker-> input when i debug a error appear:
fatal error LNK1104: cannot open file 'C:\Documents.obj'
Thank you very mutch
|
|
|
|
|
Somewhere in the linker settings for your project, documents.obj is expected.
It's looking for it in the C:\ folder - that's probably not where it is.
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
hello everybody in this forum.
i have some problems .
i want to make a dll in C++ that i can use in C# i declare the function by
<br />
extern "C" __declspec(dllexport) void DisplayMessage()<br />
{<br />
std::cout << "Hello world !!!";<br />
}<br />
when i call this function , from C# using interoperability services , the calling is excellent and i can call this function from Managed code.
ok but when i try to make a class for the following example
<br />
class Grade<br />
{<br />
public:<br />
void DisplayMessage();<br />
};<br />
<br />
public Grade<br />
{<br />
void DisplayMessage()<br />
{<br />
std::cout << "Hello Snouto Override" <<std::endl;<br />
}<br />
}<br />
<br />
<br />
extern "C" __declspec(dllexport) void ShowMessage()<br />
{<br />
Grade current_grade;<br />
current_grade.DisplayMessage();<br />
}<br />
then when i create and compile the above code into .dll using win32 Dll Project.
<br />
[DllImport(mydll.dll)]<br />
public static extern void ShowMessage();<br />
<br />
<br />
private static void Main(string[] args)<br />
{<br />
ShowMessage();<br />
}<br />
i have error telling me NullReferenceException was thrown but i don't know why.
Human knowledge belongs to the world.
|
|
|
|
|
What the language between C#.NET and VisualC++/MFC suit to develope on .NET framework?
|
|
|
|
|
if you're doing .Net, i recommend C#
|
|
|
|
|
Hi all.
I need help, in my program I use in my program
SC_HANDLE schService;
but I have prblem with it.
I include windows.h in project and write
::SC_HANDLE schService;
But I still have compile error. I dont know why?
|
|
|
|
|
Try posting the surrounding code, and tell us the compile error you're getting. We need a little more detail.
Software Zen: delete this;
|
|
|
|
|
Ist not sufficient for get answer you need to say more
|
|
|
|
|
Thanks I solve problem.
I add more dll files to project and thets all.
|
|
|
|
|
Very good
|
|
|
|
|
i need anyone who can solve ma problem
Implement a game named as TIC TAC TOE in C++ with the help of 2D Arrays.
RULES & CONSTRAINTS:
• Tic Tac Toe is played on a 4 x 4 grid.
• Two players play at a time, one can place X’s on the board, the other O’s.
• Players have alternate turns.
• The player who obtains 4X’s or 4O’s first vertically, horizontally, or diagonally wins.
• The already occupied place cannot be reoccupied.
wali
|
|
|
|
|
And ? What is the problem ? Where are you stuck ?
(I hope you don't believe that we will do your homework for you ?)
|
|
|
|
|
wrote: • Tic Tac Toe is played on a 4 x 4 grid.
Wow. I must be old. Why, when I was a youngster, we played tic-tac-toe on a 3x3 grid.
You kids are crazy!
Oh yeah, which part is giving you trouble?
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
Mark Salsbery wrote: Why, when I was a youngster, we played tic-tac-toe on a 3x3 grid.
Inflation - it affects everything!
|
|
|
|
|
Is this a New Version of this game? It was Trivial on 3x3. Whoever started on 3x3 would be the winner, if (s)he started in the correct square. Maybe 4x4 is not trivial.
Looks like a Nice Homework project though.
You don't specify a User Interface. A common misconception I found amongst some budding programmers was that Windows and CPP are somehow the same. I can assure you, The're NOT. It is merely that Microsoft wrote a large body of code in cpp,to use windows. The body of code was called MFC for Microsoft Foundation Classes.
LateNightsInNewry
|
|
|
|
|
LateNightsInNewry wrote: Whoever started on 3x3 would be the winner, if (s)he started in the correct square
Are you sure? I seem to remember that unless someone makes a mistake, no-one wins (i.e. second player can always play such that first player does not win.)
|
|
|
|
|
i want to convert LPWSTR in to STL basic string.
Amit
|
|
|
|
|
USES_CONVERSION;
string s(W2A(myLPSWSTR));
that's one way.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|