|
The reason they flicker is that you're drawing the client area and then windows draws the scrollbars on top.
Theres an article somewhere on MSDN about why scrollbars are drawn internally and hence can't be customised.
when i did a sort of skinned app, the only way i could get scroll functionality with nice looking scroll bars was to bodge a CFormView onto my dialog, and then use a custom written control to be a scrollbar, and scroll the view window internally. it was messy but it worked.
jon
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
I don't think you can paint the scrollbars yerself in the OnNCPaint...
You probably have to derive clases from CScrollBar make them owner drawn and do it that way.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hey guys
The function below is being called by rundll32.exe but whenever i run it i get a memory violation saying :-
The instruction at "0x77f52ff9c" referenced memory at "0x002e2afd. The Memory could not be "read"
// DLLVerifySignature - Allows Verification on double click
bool DLLVerifySignature(HWND hwnd, HINSTANCE hinst, LPTSTR sFileNameAndPath, int nCmdShow)
{
CFullCryptFunc FullCrypt;
FullCrypt.FullVerifySignature(sFileNameAndPath);
FullCrypt.~CFullCryptFunc();
return TRUE;
}
The funtion i call in the FullCrypt class works fine as when i call it from another part of the program i have no problems im guessing that teh problem occurs because the software is not properly initalised when it trys to call this.
Peter
|
|
|
|
|
You'll have to dig deeper - run your .dll under a debugger. Use rundll32.exe as 'Executable for debugging session' under Project Settings/Debug.
When the program crashes, you'll be able to have a look at the stack, local variables, globals, etc.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
So i have a char[20] like "foo foobar foo2" and I want to get
A = "foo"
B = "foobar"
C = "foo2"
if the words could be any length, what is the best way to do this?
tim
---------------------------------------
Tim Booher
|
|
|
|
|
|
what about the extraction operator:
char curRecord[20];
char cDay[3];
while(!osMyFile.eof()) // we go through each line in the file
{
osMyFile.getline(curRecord,20); // read time value
curRecord >> cDay;
cout << curRecord << "\t" << cDay << endl;
}
---------------------------------------
Tim Booher
|
|
|
|
|
|
i am sorry, but i don't get it what do you mean?
---------------------------------------
Tim Booher
|
|
|
|
|
He is just saying that strtok is a nice simple routine while strstream is this huge library with a lot of extra baggage.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
o.k. so I have:
while(!osMyFile.eof()) // we go through each line in the file
{
osMyFile.getline(curRecord,20); // read time value
ins >> intDay;
ins >> intTime;
ins >> strOnBay;
cout << intDay << "\t" << intTime << "\t" << strOnBay << endl;
}
this is so close to working -- the only problem is that, while it loops through the file, it keeps putting the same value in intDay, intTime and strOnBay each time . . . (i.e. they never change)
thanks,
tim
---------------------------------------
Tim Booher
|
|
|
|
|
Where did that ins come from? Rewrite your code like this:
...
osMyFile.getline(curRecord,20);
<font color=#ff0000>istringstream ins(curRecord);</font>
ins >> intDay;
...
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
thanks! works great!
---------------------------------------
Tim Booher
|
|
|
|
|
I do I add external dependies to the project?
|
|
|
|
|
Could you explain yourself a little longer? If you want a project to depend on say some external .lib just add this file as a regular source code file. The IDE will not only link the library but also take care of relative last modified dates.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Project properties--->Linker tab--->Input
Find it there
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
On the Project menu, select Dependencies.
Good Luck,
Bill
|
|
|
|
|
Hi everybody!
I'm writing program, that will go to some web site, log in, and retrieve some data. I know how to get data from web server, that does not reqire any authentication.
Web page I'm trying to log in is a standard form where you can enter username and password. Below is part of Java script of that page:
function secure_login(form)
{
// Prepare session cookies for secure login
document.cookie = "uid=" + escape(form.UserID.value) + "; path=/; domain=.somedomain.com";
document.cookie = "pwd=" + escape(form.Passwd.value) + "; path=/; domain=.somedomain.com";
document.cookie = "redirect=" + escape(form.redirect.options[form.redirect.selectedIndex].value) + "; path=/; domain=.somedomain.com";
location = "https://www.somedomain.com/secure_login.html";
}
After login server will redirect me to another page (let's say, Page2), and I want to do some work with it ("POST"s and "GET"s).
As I understand, when doing "POST" to Page2, I should somehow specify these cookies in HttpRequest. Am I right?
If yes, how should I do that? If there is any example, I'll greatly appreciate it!
Kosta.
|
|
|
|
|
Are you using raw Winsock (sockets) or rather Wininet? If the latter, <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cinternetsession.3a3a.setcookie.asp">CInternetSession::SetCookie</a> might just be what you're after.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks!
I'll try it!
Kosta.
|
|
|
|
|
There are 3 parameters:
URL,
name,
data.
As I understand, for cookie "uid" name is "uid", data is "somename", and what should I do for path and domain?
If path is "/", and domain is ".somedomain.com",
should I specify URL as "somedomain.com" or "www.somedomain.com" or somehow else?
Kosta.
|
|
|
|
|
I don't know, I'm no cookie expert. Maybe this article is of some help.
Please tell us back when you find out.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
Is it possible to move process from one window station to another?
Here is the problem. I have service, which launches GUI application before any user logs into system. So, this GUI App works within its own window station. After user logs in I want to display the window of application on his desktop. How it can be done? I cannot change the GUI application, but I can change the service, which starts this application.
Thanks,
Olley Pospyelov
|
|
|
|
|
|
This article tels how to get access to desctop of interactive user. In my case, when I start GUI application as child process there is no interactive user yet. May I somehow transfer the existing process to "winsta0"?
Olley Pospyelov
|
|
|
|