|
MrMcIntyre wrote: I am now on the login window dialog.
OK, so you want help. Show us how far you have got with your dialog, which piece doesn't compile, or which piece fails at runtime, and I guarantee someone will try and help you.
|
|
|
|
|
I am only just starting the login box that's why I need your help. I now know how to create a application but I don't know how to create a dialog window within the application. What I have done just there was on my C++ project that I created a Windows Form by going to Project > Add New Item > Windows Form and added all the textboxes, buttons, labels so how is there a code I can tell that Windows Form to load up when someone click on the application the Login box appears instead of the main client being the game window.
Andrew
Andrew McIntyre
|
|
|
|
|
See Dialog Boxes[^] on MSDN for full detais of dialog boxes, including some sample code. To use a dialog automatically at startup you just need to add the DialogBox() call at the point in your app when you process the WM_CREATE message, so the app will stall until the user completes the login form.
|
|
|
|
|
Thanks for the link. See on that page you sent me what link will I click on whilst on the page.
Andrew McIntyre
|
|
|
|
|
MrMcIntyre wrote: See on that page you sent me what link will I click on whilst on the page.
Any that you need to clarify your questions about using a modal dialog.
|
|
|
|
|
|
MrMcIntyre wrote: Never call me lazy or most importantly stupid as I am more intelligent in my Mathematics, English and Reading Skills so never again do you EVER DARE and call me stupid.
Your website says otherwise about your English skills. So if that's how you want to portray your English skills to the world, it screams "stupid".
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
To me, you seemms just a troll.
Your reputation is self-referencing.
Facts are you're not going to try to understand what has been told.
Enjoy with your reputation!
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
It'd be beneficial to everyone if you could keep your conversations subjective. This forum is specific for discussing issues related to C/C++/MFC programming.
Nobody cares about who you are. I'm being really polite to you, but if your future posts do not follow the guidelines[^], it may even be completely removed off this board.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I can feel the pain of you employees...
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, I just programmed an audio player using bitmaps for the GUI and used the DirectShow functions for playing media files but I do not have much knowledge about the internals of this DirectShow SDK. I want some articles or tutorials that will take me through the madlib mp3 decoder so that I can understand how my program works. Anyone know of some books or tutorials that describes the usage of madlib mp3 decoder, and possibly the links? Please help.
|
|
|
|
|
Did you think of Googling? I did and found this[^].
|
|
|
|
|
After compiling the code given below the following error shows....
main.c:4: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
#include <stdio.h>
struct struct_keywords {
char c_keywords[6][10] = {"int", "char", "static" , /* ERROR SHOWS HERE */
"struct", "union", "return"};
};
typedef struct struct_keywords kewords_t;
int main(int argc ,char *argv) {
kewords_t *struct_ptr;
return 0;
}
What may be the error ?????
With regards
|
|
|
|
|
Your initialisers should be outside of the struct definition thus:
struct struct_keywords
{
char c_keywords[6][10];
} mystruct =
{
"int", "char", "static",
"struct", "union", "return"
};
|
|
|
|
|
Thanks ...using ur code I cleared my errors in the program
Thanking u

|
|
|
|
|
|
int main(int argc ,char *argv)
{
kewords_t struct_ptr;
struct_ptr.c_keywords = {"int", "char", "static" , "struct", "union", "return"};
}
|
|
|
|
|
myprogarm.c: In function 'main':
myprogarm.c:17: error: expected expression before '{' token
#include <stdio.h>
struct struct_keywords {
char c_keywords[6][10];
};
typedef struct struct_keywords kewords_t;
int main(int argc ,char *argv) {
kewords_t *struct_ptr;
struct_ptr->c_keywords = {"int", "char", "static" , "struct", "union", "return"};
return 0;
}
Still showing error ...How to clear
myprogarm.c: In function 'main':
myprogarm.c:17: error: expected expression before '{' token
|
|
|
|
|
This is not correct, for a start struct_ptr has not been initialised to point to anything. I always try compiling my code suggestions before posting here.
|
|
|
|
|
help me, help me, help me, my headache, how to retrieving hicon through the name of system folder, for ins. the name of "my computer"
i just need name matched way, because maybe you change the name of my computer, thank you very much!
i can survival as you in.
|
|
|
|
|
I did not understand. You are trying to get a handle to a specific icon ?
What does this have to do with the computer name ?
Easy Profiler : Now open source !
http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
|
|
|
|
|
Hi,
I am using the List control and populating data coming as resultset into Dialog list.One of the field should be checkbox which work based on condition. If condition is true then only show the checkbox otherwise hide the checkbox.So some row have check box and rest don't. Could you please suggest way to achieve it. I tried to paint unwanted check box but it start showing when someone click on hidden checkbox. Appreciate you time.
Thanks
Pankaj
|
|
|
|
|
use GetDlgItem(ID_OF_CHECKBOX)->ShowWindow(SW_HIDE)
HTH
|
|
|
|
|
Whenever I am getting the ID list not the checkbox.
|
|
|
|