dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

MessageBox ar citādākiem button'u tekstiem
Goto page 1, 2  Next
 
dev.gamez.lv Forum Index -> Programmēšana
View previous topic :: View next topic  
Author Message
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Mon Oct 08, 2007 4:31 pm    Post subject: MessageBox ar citādākiem button'u tekstiem

man šādu vajadzētu.. ja būtu MSVS2k5, tad viss ok, bet MSVCpp2k5XP atļauj to visu ar dialogiem veidot tikai lietojot CLR, kuru es neparko nevēlos izmantot!
kā tad lai es tādus MsgBox'us izveidoju?
esmu gan googlē meklējis, atradu piemēru, bet download links nav labs..
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Mon Oct 08, 2007 4:39 pm    Post subject:

Defaultā to tā vienkārši nevar. Jātaisa pašam savs dialogs - http://msdn2.microsoft.com/en-us/library/ms632588.aspx
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Mon Oct 08, 2007 4:44 pm    Post subject:

oi...
kāds nav veidojis šādas funkcijas? pašam negribās visu tur čakarēt, jo vienīgais, ko es no GM varu dabūt, ir window handle, bet tur laikam arī hInstance vajadzēja...

btw - kārtējais DLL..

hmm, nu vēl es pieļauju iespēju šito uzkodēt uz wxDev-Cpp un tad pārnest..
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Mon Oct 08, 2007 5:15 pm    Post subject:

hInstance gandrīz vienmēr var būt NULL, tas neko nemainīs.
Kāds sakars IDE'i ar kautkādu messageboxi?
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Mon Oct 08, 2007 5:16 pm    Post subject:

VC++2k5 express neļauj "zīmēt" dialogboxus - tā būtu vieglāk!
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
DeRatizators



Joined: 27 Apr 2006
Posts: 492

PostPosted: Mon Oct 08, 2007 5:56 pm    Post subject:

snake5 wrote:
VC++2k5 express neļauj "zīmēt" dialogboxus - tā būtu vieglāk!


aizmirsi "neļauj" ielikt pēdiņās. Very Happy
_________________
Any PANCAKE has to be long and thin and short and fat. Not to mention being an excellent insulator and a superb conductor.
Back to top
View user's profile
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Mon Oct 08, 2007 5:58 pm    Post subject:

ārprāc! es teicu, ka nelietošu CLR! a viņš tikai C# kodu dod pretī!
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Mon Oct 08, 2007 8:09 pm    Post subject:

Muļķības - CLR ir kā WinAPI, tas ir valodas neatkarīgs. Tas ir darbināms no jebkuras .NET valodas - C++/CLI, C#, Delphi.NET, VB.NET, IronPython, utt..
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Mon Oct 08, 2007 8:37 pm    Post subject:

vai tad tam nevajag kādu speciālu dll?
hmm, papētīju to CLR, nepatika.. būs labāk, ja es dabūšu kautkur citur to kodu..
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Mon Oct 08, 2007 9:48 pm    Post subject:

Tam vajag .NET freimworku.
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Mon Oct 08, 2007 9:50 pm    Post subject:

nu ja, un tas man arī nepatika!
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
Storm



Joined: 11 Apr 2006
Posts: 742

PostPosted: Tue Oct 09, 2007 3:57 pm    Post subject:

interesanti uz kura muusdienu datora nav .net freimvorks uzinstaleets, Vista vins naak as default.
Back to top
View user's profile
elvman
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 09 Apr 2003
Posts: 1278
Location: Kuldiga

PostPosted: Tue Oct 09, 2007 4:12 pm    Post subject:

Storm wrote:
interesanti uz kura muusdienu datora nav .net freimvorks uzinstaleets, Vista vins naak as default.

Windows 95 viņu neatbalsta!
_________________
long time; /* know C */
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Tue Oct 09, 2007 4:17 pm    Post subject:

Uz ļoti daudziem datoriem, Storm. Un arī ne visi arī instalē to Vistu.
Back to top
View user's profile Send e-mail
snake5
Indago dalībnieks
Indago dalībnieks


Joined: 27 Jun 2007
Posts: 2590

PostPosted: Wed Oct 10, 2007 4:10 pm    Post subject:

nu redz! tāpēc man vajag spēli padarīt pēc iespējas lietojamāku!
nu anyway, JA nekas neatliks, darīšu vienkārši:
1. vai nu pārdomāšu jautājumu tā, lai var atbildēt uz to ar Yes/No
2. vēlviena īsā d3d9 PTB* dll funkcija manā noderīgo funkciju dll'ā!

*PTB - push the button
_________________
"There are two choices here: "looks good" and "realism"." -- Paul Nettle
Back to top
View user's profile Visit poster's website
Display posts from previous:   
dev.gamez.lv Forum Index -> Programmēšana All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group