|
Has the file become read-only?
If you're using an integrated source control system and checked in your files, Visual Studio doesn't always recognise that it has to check out the file when you're using the dialog editor - you have to either make an edit in the source file or check out manually (I run into this regularly ).
If you're not using source control, the file might have been set to read-only by something else, so check the permissions on it.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I'm tring from form1 to click on a button to open another form2
ex:Form1:
private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
{
TestForm *f= new TestForm();
f->Show();
}
when i press this button again the same form2 will open again.
How to prevent this? any solution please.
|
|
|
|
|
|
How about posting in the correct forum[^], where people are more likely to know the answer, as it's to do with Managed C++/CLI, you know, like you'll find in the correct forum[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I have suucesfully created Manifext.xml.
DRMInitEnvironment function fails giving me the error code 0x8004cf19 i.e. E_DRM_BROKEN_CERT_CHAIN.
Following is error trace
Running sample OfflinePublishing...
The machine is already activated.
The user is already activated.
A client licensor certificate is already i
DRMInitEnvironment failed. hr = 0x8004cf19
|
|
|
|
|
Hi deadlyabbas
I have got the same problem with you and do not know how to fix it.
I have got the word works fine with the ad rms under production mode.
Then I switched the environment to pre-production, now I can get my
machine activated and the user activing works fine as well.
But when it comes to DRMInitEnvironment the broken chain error come up and I do not know what to do.
I have to fix it in three days or something really bad will happen
If you can give me any kind of help I would appreciate it very very much.
Thanks in advance,
Jordan
|
|
|
|
|
I am using this function in my application. This function is working properly for Win XP (all varients), Vista(all variants including 64bit). But it is returning fatal error (error code 1603) for Win2008 server SP1(64 bit version). Can you help me out for this problem.
Thanks in advance.
Birajendu.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
Hello Friends
I m creating one muti dialog window based application.If Dialog is model then no prob but if any modless dialog is open and i minimize the main window then that dialog remains open on screen.
What should i do to minimize them also on minimize of main window?
Thanks In advance
Regards
Yogesh
|
|
|
|
|
May be instead of minimizing, you can hide all the popup windows using the ShowOwnedPopups() function.
|
|
|
|
|
I tried showownedPopups but this is not working.
Is any other way to minimize tem ?
|
|
|
|
|
yogeshs wrote: I tried showownedPopups but this is not working.
May be you havent correctly set the parent window while creating the other dialogs. Also check the whether the dialog has WS_POPUP style.
|
|
|
|
|
I checked for every dialog properties and its style is popup.
|
|
|
|
|
Hi There.
I am creating an application that will take a document as an input and will find Total Number of languages used to compose the same.
I am refering below web link to do the same...
http://en.wikipedia.org/wiki/Basic_Multilingual_Plane[^]
Let me also share some code snippet with you guys...
FILE *fp;
long unicode;
long c;
fp = fopen(argv[1], "r");
if(!fp)
{
printf("File open failed\n");
return 0;
}
printf("Input Unicode file: %s\n", argv[1]);
c = fgetc(fp);
c = fgetc(fp);
while( (unicode = fgetc(fp)) != EOF)
{
long unicode1 = fgetc(fp);
unicode = (unicode1 << 8) | unicode;
if (unicode >= 0x0000 && unicode <= 0x07FF)
{
if (unicode >= 0x0000 && unicode <= 0x007F)
{
unicode_set[Basic_Latin] = 1;
}
....
....
....
}
}
fclose(fp);
I got this code from one of my previous projects. But I am not able to understand why are we doing
unicode = (unicode1 << 8) | unicode;
Also, this method is not able to correctly identify all the chars.
Just FYI, I am using VS.NET 2008 with "Charset settings" as "Use Unicode Character Set"
Please suggest, if you have any other way to find out, like what all languages we have used to compose a document?
Thanks
PanB
|
|
|
|
|
PankajB wrote: unicode = (unicode1 << 8) | unicode;
That converts the two characters unicode and unicode1 into a single 16-bit wide character. It assumes that the wide characters have been stored in a little-endian fashion.
PankajB wrote: Also, this method is not able to correctly identify all the chars.
Possibly because not al unicode characters fit into 16 bits?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for the reply buddy.
Can you please suggest some solution for the second problem mentioned above? i.e., Possibly because not al unicode characters fit into 16 bits?
|
|
|
|
|
I'd suggest that you use some library (like, say libiconv[^] to read the file and do the conversion from whatever character encoding is used for the file to a full Unicode enconding (e.g. UTF-32). Then process each of those 32-bit characters the way you are in your original code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
HI,
im using CopyFile function as below...
::CopyFile(_T("F:\\test.ini"),_T("E:\\test.ini"),FALSE);
ie im copying ini file from a DVD which in F Drive to E drive...
BUt the issue is the copied file is in Readonly mode..how can i change to Write mode using code...
normally if i copy file from one localdrive to other it is not in Readonly mode...but if i copy from CDDrive then the file becomes Readonly..?
|
|
|
|
|
The documentation for CopyFile[^] states that:
File attributes for the existing file are copied to the new file. For example, if an existing file has the FILE_ATTRIBUTE_READONLY file attribute, a copy created through a call to CopyFile will also have the FILE_ATTRIBUTE_READONLY file attribute. For more information, see Retrieving and Changing File Attributes.
Given that all all files on a CD drive are read-only, your problem is not surprising.
The solution is to use the SetFileAttributes[^] function on the destination file after the copying is complete to make the file writeable.
Steve
|
|
|
|
|
HI Guys,
Can any body provide a source code to read .pst file Inbox mails. or even a procedure to how to read it
|
|
|
|
|
|
Hi,
In my application, I need to read an unicode string _T("AT+COPS=?\r") from an xml file.
The problem I am facing is that when I read an string from the xml file, it is treating the elements "\r" in "AT+COPS=?\r" as 2 different characters rather than a single carriage return value.
How do I get around this problem.
|
|
|
|
|
That's how it is supposed to work. Escape sequences are only used this way in string litterals (e.g., when you write the string yourself in the code). If you read that from a file, "\r" are two characters and they are treated as two independant characters. What you have to understand about escape sequences (like "\r") is that they are replaced by your compiler by a single character.
If you really want to do something like you that, you will need to parse the string yourself and replace the sequence yourself.
|
|
|
|
|
How to use Integrated Windows Authentication Method in VC++/MFC Applications ?
|
|
|
|
|
I am working on MDI application which has some lengthy operation on
View and also on some dialog boxes, I want to display busy cursor hours glass I implemented as below it is working during the length operation on the View, but when while there was a lengthy operation on the dialog, mouse pointer is not changed on the dialog, but if I move the mouse on the MainFram then the mouse pointer is changed, I want the mouse pointer to be changed on the Dialog also, please advice
view.cpp
void CMyView::PerformLengthyOperation()
{
m_ChangeCursor = TRUE;
AfxGetApp()->DoWaitCursor(1)
AfxGetApp()->DoWaitCursor(-1)
m_ChangeCursor = FALSE;
}
BOOL CMyView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if (m_ChangeCursor)
{
RestoreWaitCursor();
return TRUE;
}
return CView::OnSetCursor(pWnd, nHitTest, message);
}
Dlg.cpp
void CDlg::PerformLengthyOperation()
{
m_ChangeCursor = TRUE;
AfxGetApp()->DoWaitCursor(1)
AfxGetApp()->DoWaitCursor(-1)
m_ChangeCursor = FALSE;
}
|
|
|
|
|
why dont you try using CWaitCursor class for this? Check this link[^]
|
|
|
|