|
Do you know anyone who could help me with this project who either has an e-mail address or a website that I can contact and ask ect.
Andrew McIntyre
|
|
|
|
|
Pretty much all my contacts are in the games business as well, so would probably be in the same position and unable to help you.
There are some online boards and lists where you can put up a message asking if anyone's interested in your idea, one of the more likely possibilities being GameDev.Net. Actually, GameDev.Net is a pretty good resource for learning about all aspects of game development as well, so you can probably pick up quite a lot of useful information by browsing through the articles and tutorials there.
Anyway, good luck with the project, and I hope you can get a few people interested.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I have an SDI based application, and is uploading a bitmap having dimension 1280*1280... The size of client area is less and the bitmap size is large... It only uploads the portion of bitmap that fits into the client area.
So how I may increase the client area, so that scroll bar horizontal/vertical appears and bitmap loaded properly. I changed the structure CREATESTRUCT in PreCreateWindow(CREATESTRUCT& cs)
but it did not work.
any idea? THANKS
|
|
|
|
|
I need a control for the new ribbon bar that looks like a button but behaves like a checkbox (i.e. a pushlike checkbox). In VC6 I could do that with the BS_AUTOCHECKBOX|BS_PUSHLIKE styles, but I can't find a ribbon button with the same behavior, and the new CMFCRibbonButton and CMFCRibbonCheckBox aren't real windows (they don't have hwnds), so I can't just add the styles.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Nevermind, I found a way to simulate that behavior with ON_UPDATE_COMMAND_UI.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I would like to simulate the same, can you please help?
|
|
|
|
|
Hi
Can anyone tell me how i can disable the finish button on a property sheet wizard ?
on my property page i initally define the buttons like
BOOL CPage::OnSetActive()
{
CWizard* pParent = (CWizard*)GetParent();
ASSERT_KINDOF(CWizard, pParent);
pParent->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
return CPropertyPage::OnSetActive();
}
I then want to disable the finish button until a certain task has completed
i.e
void CPage::OnBnClickedBstart()
{
GetDlgItem(ID_WIZFINISH)->EnableWindow(FALSE);
DoSomething();
GetDlgItem(ID_WIZFINISH)->EnableWindow(TRUE);
}
i have also tried adding
CWnd *pWnd = GetDlgItem (ID_WIZFINISH);
pWnd->EnableWindow(FALSE);
but get the same problem
Can anyone help at all
thanks
Simon
|
|
|
|
|
use in SetWizardButtons- PSWIZB_DISABLEDFINISH
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi,
I am using one of the registy class given in CP.
The keys are defined in .h file like:
enum Keys
{
classesRoot = HKEY_CLASSES_ROOT,
currentUser = HKEY_CURRENT_USER,
localMachine = HKEY_LOCAL_MACHINE,
currentConfig = HKEY_CURRENT_CONFIG,
users = HKEY_USERS,
performanceData = HKEY_PERFORMANCE_DATA,
dynData = HKEY_DYN_DATA
};
When I compile this in VC6.0 it compiles with no errors.
But when I compile the same in visual studio 2003 it gives error like:" Constant expression is not intergral"
If i cast like: "classesRoot=(int)HKEY_CLASSES_ROOT", it throws warning such as "pointer truncation from HEKY to int".
How can I avoid the error.Please suggest.
Regards,
Sunil Kumar
|
|
|
|
|
Try converting to ULONG_PTR or maybe LONG_PTR instead of int , althorough making an enum out of HKEYs seems to be a tiny-bit ugly to me, but this might just be my personal taste. Good luck.
> 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. <
|
|
|
|
|
Thanks mate. (LONG_PTR) works.
Regards,
Sunil Kumar
|
|
|
|
|
hi all,
i am using wcstombs function to convert my const wchar* value to char*.... but its showing ?? marks instead of unicode characters..
i tried using widechartomultibyte like this... [(WideCharToMultiByte(CP_ACP, 0, Text, 0, Chartext, nSize, NULL, NULL); where int nSize =0;] but its also not converting the value....
can anyone help me where am i going wrong...
Thanks,
Rakesh.
|
|
|
|
|
Which character set are you trying to convert from?
and a wchar is unicode char is ansi
|
|
|
|
|
unicode characters..
i use chinese,japanese,arabic,french..
thanks,
rakesh
|
|
|
|
|
Hm, just looking at your code line and reading this in the documentation "If cchWideChar is set to 0, the function fails." I´d say use -1 as your cchWideChar (fourth parameter).
Souldrift
|
|
|
|
|
actually i tried with -1 first... it dint work..hence i tried with 0...
Thanks,
Rakesh
|
|
|
|
|
Could you post your actual piece of code?
|
|
|
|
|
Hi,
This is my piece of code..
const WCHAR* pText = "hello";
char * pCharText;
WideCharToMultiByte(CP_ACP, 0, pText, -1,(LPSTR) pCharText, nSize, NULL, NULL);
Thanks,
Rakesh.
|
|
|
|
|
That cannot be all your code. What´s nSize? And pCharText wasn´t initialized -> this should be a runtime error.
Anyway, try this
int erg=WideCharToMultiByte(CP_ACP, 0, pText, -1, NULL, 0, 0, 0);
char* result = new char[erg];
erg=WideCharToMultiByte(CP_ACP, 0, pText, -1, result, erg, 0, 0);
Souldrift
|
|
|
|
|
Hi SoulDrift,
I tried your code..its still showing the same "??" marks rather japanese texts..
please tell me where am going wrong..
am giving the code once again for your perusal..
const WCHAR* = L"sss";
int erg=WideCharToMultiByte(CP_ACP, 0, pText, -1, NULL, 0, 0, 0); // first we ask for the memory needed
char* charText = new char[erg];
erg = WideCharToMultiByte(CP_ACP, 0, pText, -1, charText, erg, 0, 0); // then we convert
Thanks,
Rakesh
|
|
|
|
|
Your const WCHAR* doesn`t have a label. Does your compiler not have a problem with that?
I tried your code
const WCHAR* pText = L"sss";
int erg=WideCharToMultiByte(CP_ACP, 0, pText, -1, NULL, 0, 0, 0);
char* charText = new char[erg];
erg = WideCharToMultiByte(CP_ACP, 0, pText, -1, charText, erg, 0, 0);
I works very nicely.
Souldrift
|
|
|
|
|
If the wide char character cannot be represented in the choosen codepage (in you case CP_ACP , i.e. The system default Windows ANSI codepage), then it is replaced by a default one, see WideCharToMultiByte documentation [^].
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]
|
|
|
|
|
I have to agree, if your developing on an American/english installed OS then CP_ACP will be Windows 1252, you want to change that to the Japanese/country specific page.
? is I remember right is 0x20, could be wrong.
I wrote a little app to convert UNICODE to Multibyte supporting the codepages we need, and if the wrong code page was chosen the character would be displayed as ??
basically I replaced CP_ACP with either 1250 or 1251 or 1252 etc..
Seemed to do the trick.
|
|
|
|
|
Rakesh5 wrote: ...but its showing ?? marks instead of unicode characters..
What is?
"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
|
|
|
|
|
First of all, using CP_ACP means you don't really have a control of the target code page - it depends on the users's settings. Sometimes it is exactly what you want, sometimes it is not.
Anyway, if we assume that your system locale is Windows CP 1252 and you have some Greek characters in Text , your code will try to convert Greek characters to CP1252 and because there is no mapping between the two scripts, you are going to get replacement characters (?) instead.
To convert Greek text from const wchar* value to char value to char* , you'll need to use CP1253 (not sure if I spelled the constant correctly) instead of CP_AP.
I hope it make sense.
|
|
|
|
|