|
|
If I am wrong what I am asking Plz do correct me
1. How can I change The Source IP in the IP Header
2. How can I change The Source IP in the HTTP Header
Actually I want to sumit some data from my VC App on a form in a web site which does not allow submission more than once from a single IP address
Thnx in Advance
AD
|
|
|
|
|
The following RFCs will help
Internet Protocol[^]
Transmission Control Protocol (TCP)[^]
NOTE: Normally HTTP uses TCP port 80.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi,
I have to work on Windows Themes. I should be able to apply different themes to my application. These new themes must be applicaple only to my application and not to the entire Windows. On browsing the Google and other websites I learnt that UXTHEME.DLL has to be used to change the windows themes.
But I have no idea as to how to use this Dll to change the theme of only my application. I need to give an option in my application, say in the form of menu option showing the available themes, and allow the user to select one among them and then apply the theme to my application. My application should work similar to YahooMessager where we can select available skins/themes and it gets applied only to that messenger application.
I have never worked in this area. It would be of great help to me if any one can give me some inputs in this area.
Thanks
Madhavi.
|
|
|
|
|
Hi !
You should consider keeping a data value in registry that tells which 'theme' the user has selected. Then in the application, load this value and paint your windows and controls accordingly. It's called 'skinning an application' and is a very popular theme around the Net.
The UXTHEME.DLL is a library related to Windows Themes (how Windows windows, buttons etc look like). You should never change this DLL, although you can load it to make your application have the 'Windows XP' look and feel.
An alternative is to look for fore-skinned control packages, such as Dundas Ultimate Toolbox or Codejock's Xtreme Toolkit. These both contain hundreds of components in building custom-looking UIs. Both of these toolkits currently focus on providing Office 2003 look and feel.
One option is to just use Paint and draw your UI. Then use window region clipping and painting to push this 'drawing' as your main window. This is how the popular media player Winamp is constructed, for example. All the sections of the window are loaded from a bitmap or graphics file that can be custom generated. Creating a new UI is as easy as drawing a new graphic and making it follow an already working graphic file's layout.
-Antti Keskinen
----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"
-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
|
|
|
|
|
Hello:
I have developed an MFC exe using a library that uses MFC objects. It pretends to be a driver for Bluetooth. This application uses a modal CDialog as main object. I am trying to convert this app to dll, in order to let the applications accesss bluetooth. I have designed an interface with two exported functions, Read and Write. I have done the dll but when it is initiated by the client it gets blocked as it uses a modal CDialog. I have tried to convert it to modeless but I don´t see the way as it has no parent window. Any idea of how can I solve the problem?
Thanks in advance,
Mikel Fernandez
|
|
|
|
|
lmfernandez wrote:
I have tried to convert it to modeless but I don´t see the way as it has no parent window.
Pass the desktop window as the parent. GetDesktopWindow() should help.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
GetDesktopWindow() returns NULL . Do you know any reason?
|
|
|
|
|
Are you trying to use the DLL before there is a desktop. From a driver or a service for instance!?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi
I made an application that operates on the serialport. Using "CreateFile" I must include windows.h
Now I have re-written my app and wanted to include an image in the GUI, so I used "Picturebox".
However, with the picturebox and the picture, it looks like I cannot include the headerfile windows.h.
When I include it , I get the message:
error C2039: "GetObjectA" is not a member of "System::Resources::ResourceManager"
This errormessage is pointing to the line in my code dealing with the image.
Does anybody know what I have done wrong?
regards
donE
|
|
|
|
|
Read this...http://www.kbalertz.com/kb_888267.aspx
said ifdef then undef on the getobject.... it is an
issue with including windows.h
If it works, let me know. I get a runtime error
|
|
|
|
|
ok - here is a workaround....
////REMOVE the code the IDE gave you!!!!
//this->pictureBox1->Image = (__try_cast<system::drawing::image *="">(resources->GetObject(S"pictureBox1.Image")));
///ADD This line
this->pictureBox1->Image = Image::FromFile(S"sm_titan.bmp");
This can get all crazy with a file name so here is an example with
a image directory and numbered images:
pictureBox1->Image = Image::FromFile( string::concat( directory::GetCurrentDirectory(), s"\\image\\image", imageNum.ToString(),s".bmp"));
Hope it helps!
|
|
|
|
|
|
Yea, I got the same.... Use the file name <as shown="" in="" above="" post=""> if you can.
That works no problem.
<snip>
picBox->Image = Image::FromFile(S"filePic.bmp")
<snip>
|
|
|
|
|
Hello,
Does anyone know where to get sample codes for LDAP client that works in Win9x and NT (XP, 2000 inclusive).
I am aware of Mozilla LDAP C SDK. Anyone uses it? Too bad it only works in NT based windows.
any suggestions are welcome.
thanks.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I have used implib32.exe to convert an ocx to Lib file.The lib file gets generated but when I am trying to link it ,it gives a linking error for the lib functions.
Plz suggest a way to do the conversion.
|
|
|
|
|
I do not think you can use implib32 to just convert an activeX ocx to be functioning as a native dll.
From this URL.
It said what implib32 does is
DUMPBIN to create a file
which lists all exports of a DLL, reformat this file to .DEF-file using a
text editor and then use LIB to create a import library from the .DEF-file.
The ocx need to be registered with regsvr32 which basically register itself to the registry in order to be functioning and native DLL does not require that.
(or if you are doing some sort of hacking here, then that is another case)
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I have installed Visual C++.NET and Visual SourceSafe 6.0 Netsetup, but Visual SourceSafe is still not available in the Visual C++ Add-In menu. Why?
I have downloaded the latest service pack (SP6) for SourceSafe, but nothing happened.
With VC++ 6.0 everything works well.
Pleeeeease help!
Frankie
|
|
|
|
|
The source safe menu is at File - Source Control. No longer at the same place as in VC6.
Hope this helpful.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I have no Source Control menu item in File menu in VC.NET.
If I open a project (dsp or dsw) with VC6, I have to type my VSS password. And there menu items for source control (check in/check out etc. )in File View. If I type something in a source file, I am asked automatically whether I want to check it out.
VC.NET opens it without asking anything. And there are no add-ins Solution Explorer. If I type something in a source file, the editor signs that the files are read only, but nothing else.
Frankie
|
|
|
|
|
When you are starting a blank project. You should be able to see the source control menu at the menu. (well, at least for mine)
If it doesn't. Probably it is something to do with your installation.
|
|
|
|
|
Visual SourceSafe 6.0 doesn't integrate with Visual C++ .NET
You need Visual Studio .NET (C++, C# and that other one), it comes with a new Sourcesafe version.
You can keep working with version 6 though as a standalone apllication
Arjan
|
|
|
|
|
Hi,
I tried to compile the native C++ program in C++ .NET command line Tool.
When i compiled Managed C++ is run without any warning. When i compiled both
Managed and unmanaged code in single file is run without any extra warning.
But, when i try to run native C++ only i got so many warnings.
I got the following warning. So, what swicth can i use to compile native C++
alone.
cl test.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
test.cpp
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574) :
warnin
g C4530: C++ exception handler used, but unwind semantics are not enabled.
Speci
fy /EHsc
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\istream(828) :
warnin
g C4530: C++ exception handler used, but unwind semantics are not enabled.
Speci
fy /EHsc
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\istream(1064) :
warni
ng C4530: C++ exception handler used, but unwind semantics are not enabled.
Spec
ify /EHsc
Test.cpp(2) : fatal error C1190: managed targeted code requires '#using
<mscorli
b.dll>' and '/clr' option
With Regards,
Selvam
|
|
|
|
|
Hello!
I have 3 problems with CListCtrl in LVS_ICON mode.
1. I have 2 button click handlers:
CMyDlg::OnButton1()
{
m_ctrlList.InsertItem(0, "Item1", 0);
m_ctrlList.InsertItem(1, "Item2", 1);
m_ctrlList.InsertItem(0, "Item0", 3);
}
CMyDlg::OnButton2()
{
m_ctrlList.InsertItem(0, "NewItem1", 0);
m_ctrlList.InsertItem(1, "NewItem2", 1);
m_ctrlList.InsertItem(0, "NewItem0", 3);
}
After the first click the list is:
"Item0, Item1, Item2"
All right!
But after the second click the list is:
"Item0, Item1, Item2, NewItem0, NewItem1, NewItem2"
Why NewItem0 that was inserted in position 0 is actualy appears in position 3? Looks like session wrighting on CD-R Then how ListControl determines the begining of the new "session"?
2. I use SetIconSpacing function and ListControl sometimes draws selection incorrectly: a part of icon image is not painted by selection color. When selection is changing some other painting errors are happening.
3. Is there any way to force ListControl to paint all item label's text, not only first 2 lines and "..."?
|
|
|
|
|
The items are probably being sorted as they are inserted.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|