Type: Posts; User: cbpetro
Search took 0.02 seconds.
November 7th, 2013, 11:19 PM
You were right get the CView1's parent which is the CMFCTabCtrl and then get the CMFCTabCtrl's parent which is the CTabView. Solved.
November 7th, 2013, 12:27 PM
Hmm, good point. I'm using a static function in CMyTabView...
class CMyTabView : public CTabView
virtual void OnInitialUpdate();
November 7th, 2013, 10:14 AM
CView1, CView2... are not members of CMyTabView, they are added as tabs with...
int CMyTabView::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (CTabView::OnCreate(lpCreateStruct) == -1)
November 7th, 2013, 09:50 AM
I have an MDI app with a CTabView that has 3 CView's (CView1, CView2, CView3) added as individual tabs...
pDocTemplate = new CMultiDocTemplate(...
August 26th, 2013, 10:59 PM
Thanks, I understand now. Your example is code is very helpful to clarify the point ...
"You don't return a 'block of memory'. You return a pointer to a particular memory location which the...
August 26th, 2013, 04:27 PM
I change length to offset because that appears to be confusing people.
Like I said in my original post I've never worked with memory at this level and I asked if what I'm doing is even possible. ...
August 26th, 2013, 03:56 PM
m_lpData would not point to memory at any particular location but would point to a particular block of memory from which I want to get a sub-block so using your data...
// using your data...
August 26th, 2013, 03:18 PM
LPVOID GetMemory(DWORD pos, DWORD offset)
BYTE* buffer = (BYTE*)m_lpData;
buffer += pos;
// how to return block of the memory an offset from start position +pos ?
August 26th, 2013, 02:44 PM
Let's say my memory; m_lpData, points to an int + 2 doubles + 100 structs of sum POD type
I want a function to return a pointer to the memory of 100 structs for instance
so offset would be...
August 26th, 2013, 01:38 PM
Yeah, I considered that but I my question is related to parsing memory not to the mapping which is OS related.
I have the memory, how do I get pointer to a portion of that?
August 26th, 2013, 11:22 AM
I'm working with memory mapped files and I have a block of memory that I've mapped to.
I want to write a function that returns a pointer to a portion of the mapped memory at an offset and length...
When you use the boolean to stop the thread, the thread is only stopped. The m_pThread is still a pointer to CWinThread. It seems to me, there may be three conditions you may want to...
Thanks for your help, I'm starting to understand. I have one follow up question that maybe you or someone else can help with. I used AfxEndThread in the ThreadFunc because MSDN recommends...
How do I stop a thread? I'm using ::TerminateThread within this code and the thread keeps running. Is this the correct procedure? Thanks for any help.
Yes that did it. The file was exported from MSSQL and that was the problem.
This should be a trivial excersize, but for some reason I'm getting a problem
when I read a text file. I'm reading a list of strings in text file, with one string per line. The first line has...
I have a WTL custom control that a I place on a ATL property page. The control is made up of a ListBox and Button that when pressed displays a popup window. I subclass the listbox in the dialog's...
April 24th, 2012, 07:12 AM
Why doesn't this work to read and format a TCHAR ?
April 17th, 2012, 02:04 AM
I'm starting to learn win32 programming. I wrapped a custom control code I found at Catch22.net into a single class. The code compiles but when I apply it to a custom control added to a dialog...
March 12th, 2012, 06:06 PM
Can I determine if a templated class has a particular constructor, in my case using a string within function to which T is used?
July 29th, 2011, 12:58 AM
I've been programming in visual C++ for years. I use MFC and ATL to create analysis and data management tools for my business. I use OpenGL and STL heavily in my code. I recently downloaded and...
July 26th, 2011, 01:14 PM
If your using windows, you can use the COleDateTime class which uses a double to represent time from some epoch. The COleDateTime class has the function GetAsSystemTime to read the date/time into a...
July 20th, 2011, 04:06 PM
ok, I think understand. My problem was that I was operating under the assumption that the fread, fwrite functions were C++ specific since they are listed on a C++ reference site that I use and I...
July 20th, 2011, 03:45 PM
The method you provided is the prefered method and safest. I normally would use this.
But I am reading large files, hence my method. I did not want to get into the subject of speed over safety...
July 20th, 2011, 01:55 PM
Thanks for the information, but I'm not sure it's clear what I want to do.
Would this work. Because I don't see any problems. Note the second constructor of CDerived.
int main(int argc,...
Click Here to Expand Forum to Full Width