Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: open new dialog Pin
bugDanny3-Oct-05 6:34
bugDanny3-Oct-05 6:34 
AnswerRe: open new dialog Pin
Prakash Nadar3-Oct-05 6:38
Prakash Nadar3-Oct-05 6:38 
AnswerRe: open new dialog Pin
ddmcr3-Oct-05 7:09
ddmcr3-Oct-05 7:09 
Questionaccess violation in release mode Pin
valerie993-Oct-05 6:02
valerie993-Oct-05 6:02 
AnswerRe: access violation in release mode Pin
Prakash Nadar3-Oct-05 6:32
Prakash Nadar3-Oct-05 6:32 
Generalyes, the dialog window Pin
valerie993-Oct-05 7:28
valerie993-Oct-05 7:28 
AnswerRe: access violation in release mode Pin
Nynaeve3-Oct-05 6:49
Nynaeve3-Oct-05 6:49 
QuestionShared Memory - Old References Pin
sweep1233-Oct-05 5:53
sweep1233-Oct-05 5:53 
Using Shared Memory with a large structure, but when I start a new project using the current one as a basis, the names referenced in the structure are the old names and not the new names.

If I type in the new names then All OK, but if I select old name from list error (as would expect). But how to arrange for the display of new structure items in the list.

Is this an IDE bug or does the registry need a tidy up (and how).
<br />
struct TSharedMemory{<br />
....<br />
....<br />
};<br />
<br />
// Try to create file mapping object for the data(assume that this is the server)<br />
g_hMap = ::CreateFileMapping((HANDLE) 0xFFFFFFFF,<br />
				NULL,<br />
				PAGE_READWRITE,<br />
				0,<br />
				sizeof(TSharedMemory),<br />
				"TP_SharedMem"<br />
				);<br />
if(g_hMap == NULL)<br />
{<br />
        int s = GetLastError();<br />
	g_szFormatting.Format ("Shared Memory Not Obtained (Signals); Error = %d", s); <br />
	AfxMessageBox(g_szFormatting);<br />
}<br />
else<br />
{<br />
	// Obtain a pointer from the handle to file mapping object<br />
	g_hMap = (TSharedMemory*)::MapViewOfFile(g_hMap,FILE_MAP_WRITE,0,0,sizeof(TSharedMemory));<br />
<br />
	// Clear down the current project saved setting structure<br />
	memset(g_pMem, 0, sizeof(TSharedMemory));<br />
}<br />
<br />
memcpy(&g_pMem->tips.buffer, &BCbuffer.data , sizeof(BCbuffer.data));

i.e. when you type &g_pMem-> its the old names that are shown.
Questiontrigger events Pin
Anonymous3-Oct-05 5:46
Anonymous3-Oct-05 5:46 
QuestionThe amazing vanishing keypress Pin
hairy_hats3-Oct-05 5:29
hairy_hats3-Oct-05 5:29 
AnswerRe: The amazing vanishing keypress Pin
icabod3-Oct-05 5:55
icabod3-Oct-05 5:55 
GeneralRe: The amazing vanishing keypress Pin
icabod3-Oct-05 6:06
icabod3-Oct-05 6:06 
GeneralRe: The amazing vanishing keypress Pin
hairy_hats3-Oct-05 23:11
hairy_hats3-Oct-05 23:11 
QuestionCRecordSet ? - adding new records Pin
ddmcr3-Oct-05 3:22
ddmcr3-Oct-05 3:22 
AnswerRe: CRecordSet ? - adding new records Pin
vikas amin3-Oct-05 3:54
vikas amin3-Oct-05 3:54 
QuestionRe: CRecordSet ? - adding new records Pin
ddmcr3-Oct-05 4:06
ddmcr3-Oct-05 4:06 
AnswerRe: CRecordSet ? - adding new records Pin
vikas amin3-Oct-05 4:36
vikas amin3-Oct-05 4:36 
QuestionRe: CRecordSet ? - adding new records [modified] Pin
ddmcr3-Oct-05 5:33
ddmcr3-Oct-05 5:33 
AnswerRe: CRecordSet ? - adding new records Pin
hairy_hats3-Oct-05 5:24
hairy_hats3-Oct-05 5:24 
GeneralRe: CRecordSet ? - adding new records Pin
ddmcr3-Oct-05 5:54
ddmcr3-Oct-05 5:54 
AnswerRe: CRecordSet ? - adding new records Pin
Ghasrfakhri3-Oct-05 5:41
Ghasrfakhri3-Oct-05 5:41 
GeneralRe: CRecordSet ? - adding new records Pin
ddmcr3-Oct-05 5:51
ddmcr3-Oct-05 5:51 
AnswerRe: CRecordSet ? - adding new records Pin
Ghasrfakhri3-Oct-05 5:57
Ghasrfakhri3-Oct-05 5:57 
QuestionTransparent drawing Pin
Jagadeesh VN3-Oct-05 2:55
Jagadeesh VN3-Oct-05 2:55 
AnswerRe: Transparent drawing Pin
vikas amin3-Oct-05 3:24
vikas amin3-Oct-05 3:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.