|
|
Thx Joan,
i'm trying to understand your code but it is hard for me...
|
|
|
|
|
You are welcome, the article was written in order to get the feedback from other CPians, so ask whatever you need and tell me whatever you think that should be improved.
|
|
|
|
|
Hello,
I work with CHtmlView, and i want to know the url of activate frame.
You know how to get this ?
thx in advance
|
|
|
|
|
I want to get the range of a window from other app not my app.
I used ::GetScrollRange() function but always failed.
can anyone tell me whether i can get to the purpose or not?
if yes would you please tell me how?
your helpful advice will be apriciate.
|
|
|
|
|
friends ,
Can u help me with some code which will detect a file if it s aMPEG-1 file or not ????
|
|
|
|
|
Is it possible to convert const unsinged char* to unsinged char*. If yes tell me how.
Reply me soon
|
|
|
|
|
Hm... why don't you try it?
const unsigned char* a = NULL;
unsigned char* b = NULL;
b = (unsigned char*)a;
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Using the C++ casts this could be written as:
const unsigned char* a = NULL;
unsigned char* b = NULL;
b = const_cast< unsigned char* >(a);
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
baah.. same sh*t!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
*raise index finger*
Maybe, but I AM more correct!
*index finger pointing at you*
;P
< edit >It still remains evil to cast a const away.
Big design flaw!< /edit >
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
jhwurmbach wrote:
but I AM more correct
Yes you are!
I'm going to update my current project and remove all C casting sh*t and replace it with C++ castings!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
use const_cast <unsigned char*=""> (YourConstVariable)
|
|
|
|
|
ups, typo - it should read :
const_cast<unsigned char*>(YourConstVariable)
|
|
|
|
|
I want to enhance the capability of my(MFC VC++) program. Right now it is just sniffing the network traffic. I want it to show the sniffing of differt packets in graphical form. How is that possible.
I dont care what ever type of graph or chart it may be.
Moreover I want to update it in the other thread now on certain event.
Plz refer me relevent sites/apis and try to guide me step by step as I am a beginner.
Reply me soon
|
|
|
|
|
Hi everybody !!
I have an application that needs to switch to several views. For this, there are buttons in the ToolBar (one for each view). But I want these buttons to be a group (so when I selecte a view, the corresponding button stays pressed until another one is presesd).
I tried using m_MyToolBar.GetToolBarCtrl().SetState(ID_MYBUTTON,TBSTYLE_CHECK) but it doesn't seems to work.
I know, it must be stupid, but I can't find it .
Thanks
|
|
|
|
|
Hi
I am looking for the Automation of Ms Office Files (.doc, .xls) to the Web Pages using VC6. Actually this automation should also be able to make the Web Pages' formatting to the standard format of the Web Page. How can i achieve this?
Lateron i also have to convert the jpeg file, Visio file etc. Can anyone help me out.
Thanx.
|
|
|
|
|
Can anyone tell me where i can learn, or how to do, the following??
i need to take in a 2X2 matrix from the user (all in just C ) and have the user input seem as though they are just filling in the numbers (ie the skelleton stays constant and numbers are entered at the %'s). here is a skelliton of how the results are to be displayed / entered..
yeah, looks like garbage here but looks relitivly descent in DOS; well descent enough for my prof.
printf("\nPlease enter your encoder matrix....\n");
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° ÉÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍÍ» °±±±±±°°°°°±±±±±°°°°°±±±±±");
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° º º °±±±±±°°°°°±±±±±°°°°°±±±±±");
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° º %9d %-9d º °±±±±±°°°°°±±±±±°°°°°±±±±±",a[0][0],a[0][1]);
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° º º °±±±±±°°°°°±±±±±°°°°°±±±±±");
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° º %9d %-9d º °±±±±±°°°°°±±±±±°°°°°±±±±±",a[1][0],a[1][1]);
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° º º °±±±±±°°°°°±±±±±°°°°°±±±±±");
printf("±±±±±°°°°°±±±±±°°°°°±±±±±° ÈÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍÍͼ °±±±±±°°°°°±±±±±°°°°°±±±±±");
P.S.
is there an escape key that goes UP a line? (like how /r goes to the beginning of a line)
P.P.S.
should i just drop this and learn java? or is this acctually possible. it would be nice if there was some sort of pixel system in C. (my class hasn't covered such material yet. we're just at Files, but if there is where could i learn such material? )
Thanks to all who take the time to help a needy 1st yr EE.
|
|
|
|
|
When run under windows XP, the menu bar on my MFC application has a white background behind the text of the menu names, even though most of the menu bar is a gray color. When the menus are clicked with the mouse, the white portion grows. It's purely a cosmetic problem, but it looks cheesy.
You can see this problem by just generating a generic MFC application using the MFC app wizard, compile it, and run it. I'm using Windows XP pro, with VC++ version 7.
Thanks for any insights.
John
|
|
|
|
|
Does anyone else have this same problem?
|
|
|
|
|
Hello everyone!~
Does any one have any demo/code of a HTML parser in MS VC++ MFC?
I need a HTML parser which can be used in a typical MFC environment.
I have looked through the Microsoft's "walkall" example. However, I find it uses some older version of include files, which is not compatible with StdAfx.h, etc. (in one word, if I "new" a new MFC single document project, I can not incorporate the "walkall" into it.)
What I want from the parser includes:
be able to build a tag tree,
be able to extact the tag text and tag URLs(if a "A" tag).
Since I only do coding in MFC environment (with a lot of MFC class/libs such as CDialog box, CList, CFormView, etc.), I want the code to be very compatible with MFC.
Thanks a lot for any information or suggestion on this.
Have a nice day.
PS: my current walkaround is:
let walkall.exe write the output to a file,
use create process in my MFC program to execute the walkall.exe, and read in the file after that.
Surely it is a bad walkaround.
|
|
|
|
|
You'll find some useful parsing functions in this[^] article.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I want my VC++ (SDI in MFC) program to draw certain graphs and charts. I am totally balnk in this matter.
Firstly I am not finding the controls of it in the toolbar. Suggest me from where I can get them and how to use them. I am also interested in bar charts and straight line graphs.
Plz guide me step by step bcz I don't have much knowledge in it.
Reply me soon
|
|
|
|
|
What do you mean by not finding the controls of it in the toolbar? You mean you cannot find the toolbar with all the controls ?? If so, right-click on the toolbar and check the Controls check-box.
For charting data, you have several solutions: write your own charts classes (wich may take a lot of time), try to find free existing classes (I think there are some of these classes on this site), or buy such a chart. I opted for the last solution and I found something really complete (you can draw pie, lines,... everything you want): take a look at the site www.steema.com for the TeeChart (ActiveX version)!
Hope this helps
|
|
|
|
|
I want to Create a Frame/view/doc structure On a ActiveX Control,but It will be Found Memory leak! And I Found that the
reasons is :
CDocManager* CDocManager::pStaticDocManager;
CPtrList* CDocManager::pStaticList;
How Can I avoid Memroy leak?
the Following is My Code :
BOOL Create()
{
if( m_pFrameWnd )
{
if( IsWindow(m_pFrameWnd->m_hWnd) ) return TRUE;
}
CSingleDocTemplate * pDocTemplate;
pDocTemplate = new CSingleDocTemplate(IDR_MAPTYPE,
RUNTIME_CLASS(CMapDoc),
RUNTIME_CLASS(CMapFrame),
RUNTIME_CLASS(CMapView));
CMapDoc * pDoc = new CMapDoc;
CCreateContext Context;
Context.m_pCurrentDoc = pDoc;
Context.m_pNewDocTemplate = pDocTemplate;
Context.m_pNewViewClass = RUNTIME_CLASS(CMapView);
Context.m_pLastView = NULL;
Context.m_pCurrentFrame = NULL;
CMapFrame * pFrameWnd = new CMapFrame;
m_pDoc = pDoc;
m_pFrameWnd = pFrameWnd;
m_pDocTemplate = pDocTemplate;
CRect rcMap;
GetClientRect(&rcMap);
BOOL ret = m_pFrameWnd->Create(AfxRegisterWndClass(CS_DBLCLKS), NULL, WS_CHILD|WS_VISIBLE, rcMap,this,NULL,&Context);
m_pFrameWnd->ShowWindow(SW_SHOW);
return ret;
}
ZHANGYIFEI
|
|
|
|