|
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 )
|
|
|
|
|
The STL has two typedef s which are shortcuts for specialisations of basic_string : std::string and std::wstring . If you're working with LPWSTR s then you probably want std::wstring . Here's an example:
std::wstring s = L"Hello";
Steve
|
|
|
|
|
hi all
i have coded an applications which gives the status of network. my application is running when the network gets disabled or when a network cable is unplugged. i am one more scenario where i need to run my application i e., when an firewall is installed. i need to run without setting the settings of firewall . i need to achieve it programmatically
kindly help!!!!
regards
sudhir
|
|
|
|
|
hmm If we could change firewall settings programmatically then they would't be very secure.
You didn't specify which settings you want to change but you could look into UPnP.
Some firewall/NAT devices have UPnP support (although most secure networks don't enable it I
imagine).
If the firewall is the Windows Firewall on XP and your app is running with admin privileges then
there's the Windows Firewall API as well.
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!")
|
|
|
|
|
Hi all
We are devolpping xpcom component to capture the events inn mozilla browser.Here we encounted the problem,when we enter an url on address bar of mozilla ,the address of perticula site nust displayed in messgebox.For that we have a lot confusion how handle the events like
Navigete before,navegate error,navigate complete.
plz give me a solution.
#sanroop#
|
|
|
|
|
Try it man.
Come online at:-
jubinc@skype
|
|
|
|
|
i have a command bar in my application that runs on WinCE module.
i need to increase the size of it. how do i do it???
i am using this to create the menubar.
if(SHCreateMenuBar(&mbi))
{
g_hwndMb = mbi.hwndMB;
TBBUTTONINFO tbbi = {0};
tbbi.cbSize = sizeof(tbbi);
::SendMessageW(g_hwndMb, TB_GETBUTTONINFO,0, (LPARAM)&tbbi);
g_hMenu = (HMENU)tbbi.lParam;
}
|
|
|
|
|
hi,
i have a ocx created, i add that ocx in a dialog based app.nw i need to set properties for that ocx in the dialog hw to do.i need to know the similar concept in vc++ as dat of property bag concept in vb
zari
|
|
|
|
|
Hello,
I have declared a variable like this:
UINT * p[2000*800];
and I want to send this variable through network using
winsock2.
And time is very important for me...
Thank you.
|
|
|
|
|
There's not enough information here. What have you done so far?
|
|
|
|
|
send(socket, (const char*)p, 2000*800*sizeof(p[0]), 0);
Of course I've omitted error handling and the possibility that all bytes don't get sent in one
call.
Are you sure you want to send UINT pointers across the network? Pointers aren't much use
except in the context of the process they were created in.
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!")
|
|
|
|
|
hi,
I h've been reading on some openGL stuff and need some help with a simple program.
I want to display a cylinder with hole.
I am drawing cyliner with
gluCylinder(cyl, 3, 3, 5, 12, 12);
I want to set thickness of cylinder.
thanks in advanvce.
Rushiraj
|
|
|
|