|
There is a useful class named CBitmap,
DWORD CBitmap::SetBitmapBits(DWORD dwCount, const void* lpBits);
This member function should be helpfull
|
|
|
|
|
Send your answers to mikeza123@comcast.net
1. When a decryption section is added to a PE what is changed and must be restored for the program to function properly after dumping?
2. What exactly does it mean to dump a program?
3. What is an OEP and what should you look for when finding one?
4. What does IAT stand for and what is its member index in the Optional Header?
5. What API imports should you look for when looking for email sending functionality?
6. What ring must you be in to access debug registers?
lets see how smart yall are
|
|
|
|
|
None do I know. I feel like an idiot...
Maxwell Chen
|
|
|
|
|
Wots the first prize
It's not a bug, it's an undocumented feature. suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
test my knowledge or yours ?
anyway, I don't have a clue ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
1. Ha!, this is a trick question, you shouldn't actually dump a program, because it may contain sectors that won't get broken down over time, and that could cause a major environmental catastrophe.
2. That's when programmers of questionable quality hauls aged programs out in deep sea and throws them out to pollute the local environment.
3. An OEP is a little critter living in the forests south of Neverwinter, if you find one, you should look for its cave, because they are usually loaded with weapons and stuff...
4.I refuse to answer this question, because i despise everything IAT stands for...
5. The ones that are concerned about sending emails.
6. , now that's a dirty question, this should be in the soapbox.
So, how did I do?
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
ARG YA'LL FAILED....Lol nice try, took me a while to answer them to
|
|
|
|
|
Hope So i Failed Too!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hello,
This is probably very simple but I am having problems.. Here is what I am trying to do..
I have a SDI application explorer style, tree at the left and I want, in column 2, to have another horz split with 2 different list views one on top and one on the bottom, is this possible?
Here is how it is now..
| | | |
| TREE | CTopListView | CBottomListView |
| | | |
This is how i want it to look
| | CTopListView
| |
| TREE |--------------------
| |
| | CBottomListView
Here is how im currently splitting inside CMainFrame
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT ,
CCreateContext* pContext)
{
if (!m_wndSplitter.CreateStatic(this, 1, 3))
return FALSE;
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMachineView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRemoteView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(0, 2, RUNTIME_CLASS(CLocalView), CSize(100, 100), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
I have tried tons of combo's..
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
if i understand correctly, you need two columns and in the right hand column two rows.
try this
first of you need two splitterwnd member variables
m_wndSplitter,m_wndSplitter1;
m_wndSplitter.CreateStatic(this,1,2);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftTreeView),CSize(150,100),pContext);
m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE,m_wndSplitter.IdFromRowCol(0, 1));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CMyListView),CSize(100,75),pContext);
m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CMyListView),CSize(100,100),pContext);
Hope it Helps
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Worked like a charm!
Thank you!
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
I am at the starting blocks when it comes to VC++. To give you some background, I am a Computer Science student thats fed up with the fact that my department champions JAVA for undergrads, while using C and C++ for all their research projects. I have a copy of vis Studio .NET 2003 pro, and would like to get started in VC++.
I am familiar with JAVA, object oriented concepts, and some operating system/compiler basics.
If I want to build a bog standard windows app, with the usual GUI widgets, and possibly a panel area for custom graphics output, whats the best way to go about this. I'd like to stick to C++ as much as possible as it seems to be widespread. The whole MFC/ATL/managed extensions business confuses the hell out of me, can anyone let me know where I should begin?
|
|
|
|
|
MFC is a class library that wraps the old C way of doing things in Windows. It is infinitely easier to use than Win32 stuff, is OO, and is widely used. WTL is cool, but more complex ( you'll need to learn templates, etc. ) and not so widely used, nor does Microsoft support it. Managed extensions are crap, pure and simple. If you want the .NET runtime, use C#.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Like Christian said, MFC is a OO library which makes it much easier to program windows.
If you want to start programming in C/C++, one of the books I've always liked is Let Us C[^]
There's Let Us C++[^] too, if you want a cpp book. I haven't read it, but judging by the first book, I think it should be pretty good.
Pointers in C and C Projects by the same author are also good.
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
Hi,
I have a class derived from CButton, CMyButton for the sake of discussion, and I would like to create a variable number of these controls on a dialog based on certain parameters. I have CMyButton* m_pButtons, where I've alloted memory with 'new'. I then try to do the following:
m_pButtons[0]=CreateWindow("BUTTON",0,WS_CHILD|WS_VISIBLE,nSomeX,nSomeY,nSomeWidth,nSomeHeight,this->m_hWnd,0,NULL,0);
I get this error:
error C2582: 'CMyButton' : 'operator =' function is unavailable
Is there some other way to approach this, or do I need to define a 'operator ='? If I need to define the operator, how should I do it? And is this enough information?
Thanks,
Aaron Stubbendieck
modified 12-Jul-20 21:01pm.
|
|
|
|
|
I have not checked your code. But I thought it should be changed to:
<br />
CMyButton* m_pButtons=new CMyButton;<br />
m_pButtons->CreateWindow("BUTTON",0,WS_CHILD|WS_VISIBLE,nSomeX,nSomeY,nSomeWidth,nSomeHeight,this,0,NULL,0);<br />
Or if you need an array of button:
<br />
CMyButton m_Buttons[10];<br />
m_Button[0].Create(...);<br />
m_Button[1].Create(...);<br />
....<br />
|
|
|
|
|
I think you're probably right on the the correct CreateWindow thing there, but I guess that's not how I should do it.
I've tried the m_pButtons[0].Create(...), and that works well, it just looks different from the other buttons. Also, debug assertions are caused in debug builds, but aren't a problem in release builds.
Is there a way I can fix the visual issues (flat button with border and the default system font) or do I just need to set those manually?
[edit]I just decided to manually add the styles and font and it works great. Thanks for your help![/edit]
Thanks
modified 12-Jul-20 21:01pm.
|
|
|
|
|
I can get the other exe's ocx control's handle.
I try to use handle to control's point,but it is error!
example:
p = (CSpreadSheet *)CWnd::FromHandle(glhTargetWnd);
//error,because the p is my exe, the ocx control is belong to the other exe,I cant use FromHandle.
How can I do?
Please help me!!!!
555555 7456
|
|
|
|
|
Some printers have the capability to print the last page first.
I cant figure out how to set this option programatically. I dont't see anything in the DEVMODE structure that address reverse printing.
can anyone help?
Thanks in advance
|
|
|
|
|
hey:
to realize reverse print ,then that print program must support "what you get is what you see",that is to say:the same function not only finish display but also print.because only this way,the Document in screen can be corresponding to the printing length.and at the same time we can set the maxpage in OnParePrinting.
now i give a little example ,hope to give you some instructive things.
for example:(1)now there is a student database
(2)by Appwizard,the sixth step set PrintView (base class :scrollView)
(3)extracted data from the database then display them in scrollview
(3)below about your reverse print
1.Bool CPrintView::OnPreparePrinting(CPrintInfo*pInfo)
{pInfo->SetMaxPage(StudRecNum/5);
//StudRecNum is student recordnumber,iwant set 5 records in a page
return DoPreparePrinting(pInfo);}
2,in OnBeginPrinting
{m_bPrintEnd=false;
//m_bPrintEnd is declared in CPrintView to point whether stop printing
studentRec->MoveLast();
if(studentRec->IsBOF())
m_bPrintEnd=true;
}
3.void CPrintView::OnPrepareDC(CDC*pDC,CPrintInfo*pInfo)
{
CSrollView::OnPrepareDC(pDC,pInfo);
if(pInfo!=NULL)
pInfo->m_bContinuePrinting!=m_bPrintEnd;
}
4.void CPrintView::OnPrint(CDC*pDC,CPrintInfo*pInfo)
{
int Curpage=pInfo->m_nCurPage;
studentRec->SetAbsolutePosition(StudRecNum);
......
//set output map mode,and get the auguments of text metrics
//print the column headers
//print student records in one page by loop
//set for next printing
....
studentRec->MovePrev();
if(studentRec->IsBOF()
{m_bPrintEnd=true;
break;
}
CSrollView::OnPrint(pDC,pInfo);
}
i only give a thinking ,not write completely,try to finish ,then post your harves to make us all progress.
|
|
|
|
|
I am new to VC++ and have no idea where to start. I have VB.NET DLL that I need to call from VC++.net. How can I do that? please help
|
|
|
|
|
Hi,
i am facing some problem while working with streams in my C++ program using STL
main(){
..
..
char buf[256];
stringstream infLine(buf);
infline<
|
|
|
|
|
What is your actual problem?
The code you've posted looks bogus, the constructor for 'infLine' and the two instances of 'infLine' on the next line.
Paul
|
|
|
|
|
Infact we are doing migration from IOC to standard C++
#define FIELD_DELIM "~"
#define RECORD_LEN 450
#define RECORD_DELIM '!'
main (int argc, char *argv[])
{
IString filename (argv[1]);
ifstream inFile(filename);
char buf[RECORD_LEN+1];
IString inLine;
IString notUsed;
int i;
while (inFile.getline(buf, RECORD_LEN+1, RECORD_DELIM)) {
inLine = buf;
inLine >> notUsed >> FIELD_DELIM >> // record counter
recordType >> FIELD_DELIM >>
effDate >> FIELD_DELIM >>
productType >> FIELD_DELIM >>
notUsed >> FIELD_DELIM >> // collateral type
baseMargin >> FIELD_DELIM >>
rateType >> FIELD_DELIM >>
vehicleAge >> FIELD_DELIM >>
ltv >> FIELD_DELIM >>
inLine;
}
ealier this peice of code worked but now when i am using string as i mentioned above instead of istring this is not getting compiled and giving problems
What might be the problem.I am trying out various ways but couldnt do it
Your help will be greatly appreciated
|
|
|
|
|
Hi everyone, im new to this place..
I need to create, make, use, or whatever, a custom search.
Here is what I want to do and possibly complete.
Here is a (sample) of The "new" FreeBay. http://www.thefreebay.com/sample
I want to put a search on the site that I can customize and add items to.
Not a search with http links and titles, but one that could search for
"free items in custom tables" and then for the results to appear
embedded just like on the sample page.
To get a clear picture of this.......
I dont know about making the search engine to search for its results
(free items) on the pages within the free bay, but an easier way would
be to use a system that I could input the "items with tables" into,
and the engine would search the text within the seperate custom
tables/items, and appear them as shown on the sample. Just the items,
that means the sponsors name, brief description, along with the rating
and link.
There has got to be something that can search for text within a 3
column 2 row table and out put that table exactly as is.
I hope this is all understandable. Please help me..
Thnx..
|
|
|
|
|