Hello i am using a web browser control in my program with ms visual. I use the web browsers internal functions to do things like, cut, copy, select, CreateLink....It looks like this. this->webBrowserBody->Document->ExecCommand("CreateLink", false, nullptr); ............ Ok, that will bring up and insert link dialog. The dialogs are blank in color. Is there anyway to access the color and background image of web browser dialog box's . thanks, cant find this anywhere.

Member Avatar
+0 forum 0

Hello all. I am wokring in windows forms right now. I have a form with many large split containers inside of it, in these split containers are a few more split containers. When i re-size the splitter on any of my split containers. All of the child splitters will change. I dont want this to happen, is there a way to set a ratio for a split container and how it will effect its internal compents total movement distance. in html this kind of positioning is called absolute as opposed to relative. Is there a c++ equivelant to absolute positioning?

Member Avatar
Member Avatar
+0 forum 1

Hello. I am working on a windows form right now. My form is very full and i am using many textures. I have double buffered my form and made exteded classes for anything with a texture that has double buffering. Before i had double buffered everything my form was very jerky when i moved it offscreen. It would kinda stick and jerk. I notice this happens only when i move it offscreen. I have not found any information on this anywhere, im surprized im the only one who has experiences this. Another thing i have thaught of is drawing and …

Member Avatar
Member Avatar
+0 forum 4

Hello all. I have come to the conclusion that when i try to use images for backgrounds in my windows forms, these images have to be exactly the same size as the form or else when i move the form it will cause the form to shake. The problem with doing this is when i maximize the form the texture image i used as a background then will tile and repeat over and over to match the size of the form. What i want to do , is to use a very large and complete texture or image for background, …

Member Avatar
Member Avatar
+0 forum 1

Hello. All i am having trouble with using public ref classes and gcnew. The following code will show you my situation. Vector2 class /// </summary> public ref class vector2{ public: vector2(void):x(""),y(""){}; System::String ^x; System::String ^y; void Position(System::String ^ X, System::String^ Y){ x=X; y=Y; }; }; Add picture class public ref class AddPicture { public: AddPicture(void):fileName(""){} vector2 ^ V1,^ V2; System::String ^ fileName; void newAddPicture(vector2 ^ v1,vector2 ^ v2,System::String ^ filename){ fileName = filename; V1=v1; V2=v2; } then this is where construct these this->newAp = gcnew AddPicture(); vector2 ^vv1,^vv2; vv1= gcnew vector2(); vv2= gcnew vector2(); vv1->Position(posx,posy); vv2->Position(sizex,sizey); newAp->newAddPicture(vv1,vv2,MyString1); if i want …

Member Avatar
Member Avatar
+0 forum 5

Hello all . I used to problems with my program shaking when i mioved it off screen. I found code thats supposed to fix it . It came from some program i was tinkering with. Its had many complex textures and all added to its form and the form didnt shake when i move it off screen. I cant seem to find any good explanations or working code for double buffering anywhere i was wondering if somone could help me with what i have found so far ont he topic. This is the code i dont udnerstand but seems to …

Member Avatar
Member Avatar
+0 forum 2

Hello I have a large project that i bult with windows forms. When I drag a form on my screen it will move with no problem. When part of the form is overlaping the edge of my monitor and i try to drag it , the form will shutter when its moving. It moves as if it is partially stuck to its last position. I could only imagen it being somthing to do with the textures i added to the form componants properties and the way it is drawn when being dragged in this sertine way. When i remove all …

Member Avatar
Member Avatar
+0 forum 1

Hello. I have a unique situation. I have so many text box's in my form that i wound up making a text box array. Now each text box i make i have to give it a mouse clicked event and mouse moved event. I cannot write these event functions for all of the text box's there would be too many. So i thaught i could just find out what text box has been clicked then in the events function iterate through the array of text box's and find out which one has been selected or not. You might not have …

Member Avatar
Member Avatar
+0 forum 2

Hello all. I am working with threads at the moment in my program. The thread is simple and looks like this. Thread oThread = gcnew Thread( new ThreadStart( this,&qualifiedlist::ThreadProc ) ); oThread->Start(); I have another simplar thread like this but its more complex. I try to set variables in it like this, for example. int y; void ThreadProc(void){ }; Thread oThread = new Thread( new ThreadStart( this,&qualifiedlist::ThreadProc ) ); oThread->Start(); cout<<y; y will be 0! This is veryyy simple stuff, but if i cout<<y; from outside of the ThreadProc it will be 0 always. I have tried a few other …

Member Avatar
Member Avatar
+0 forum 2

Hello all. I have a small web server that i am using in one of my projects. It is designed to receive a message when somone click on a link containing my ip address. Its used for a email verification/ de-verification. I can run this web server and then type in my ip address into my browser, it will send my web server a message. So it works right. When i try to use it from another computer it will not work. It should, i have turned off all my firewalls, and i am not running through a router, so …

Member Avatar
+0 forum 0

Hello all. I am working with windows forms in c++/cli. I am trying to use a tabpage control. When i have a background image behind my tabs, the tabs will flicker when i click on them. I have read about using this in my forms main constructor. [CODE] this->DoubleBuffered = true; this->SetStyle(ControlStyles::AllPaintingInWmPaint | ControlStyles::UserPaint | ControlStyles::OptimizedDoubleBuffer, true); this->UpdateStyles(); [/CODE] The code i wrote above does not work. I have also read about making a new class with the tabcontrol and an extended class,then overloading its functions somehow. But i don't know, any help please this is making my whole project …

Member Avatar
Member Avatar
+0 forum 1

Hello i am finishing up a pop3 program and now am looking for a way to view the html i receive form the pop3 server that comes along with some messages. People have told me to use a web browser but that seem over kill. Could i dissect a web browser and replace the ip stream with a stream from my pop messages? Thanks for any advice. Ill display code later if i find anyhting of value.

Member Avatar
Member Avatar
+0 forum 2

Hello all. I am working on a pop3 connection. The problem is that after i have connected , when i try to read the stream, it will work. Although the next time i read from it it will just stop my program execution and hang. Like as it its in some endless loop. my pop3 server connection looks like this. It is missing the account information authorization, but it works and the server will send me a response . Its not about that though just the use of the ReadLine() function from StreamReader, isn't working right. [CODE] tcpclient = gcnew …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I am working with managed c++ ,cli. I am working on a large project and cannot afford to make any mistakes. In cli from what i have seen usually when i construct classes i use this ^ character to do so, like this [CODE] //header file public ref class something{}; //cpp file something ^ s; [/CODE] My problem is with enumerations because you make enumerations without the ref i used for the class something it looks like the fallowing. [CODE] //header public: enum class C{ //cpp C c; } [/CODE] For anything else in managed c++ this would …

Member Avatar
Member Avatar
+0 forum 2

Hello all. I am trying to convert a c document to c++. I requires that i use the out word like this. [CODE] if (executeCommand("QUIT", out response)) [/CODE] is there and out for c, or a better way that i'm unaware of. Thanks all for your time. bye

Member Avatar
Member Avatar
+0 forum 2

Hello all. I am trying to convert a c document to c++. I requires that i use the out word like this. [CODE] if (executeCommand("QUIT", out response)) [/CODE] is there and out for c, or a better way that i'm unaware of. Thanks all for your time. bye

Member Avatar
Member Avatar
+0 forum 1

Hello all. i might have posted about this recently but, i have done much research and refined my research and am close to a solution. I am trying to use the click of a ahref link with a variable tacked on the end, to send a message to one of my servers that i have running on the port 80. my link looks like this. [CODE] <A href="http://localhost/xampp/?This+is+a+test.">Introduction</A> [/CODE] I know that if i have a php document on my web server that has the $_REQUEST to extract the variable the link would look like the fallowing. [CODE] <A href="http://localhost/xampp/?Test=This+is+a+test.">Introduction</A> …

Member Avatar
Member Avatar
+0 forum 1

Hello all i am working on a web server right now. I can normally type in my ip address at my house and it will connect to my server if my firewall is shut off. I have a router, with and internal and external ip. I'm trying to get my server connecting to the outside world. when i go to my library and type in my internal ip address it actually connects, which was a surprise, but at least it seems to be working. When i try to use my external ip address, it will not connect.My firewalls will be …

Member Avatar
Member Avatar
+0 forum 5

Hello all this is my c++ web server that i can get working on my computer but not connecting to others for some reason. I am not on a router, just using my external ip address. If i run the server and type my external ip address into my browser it will connect to the server properly. even with all firewalls turned off it wont work, this is my code. [CODE] #include "stdafx.h" #include <iostream> using namespace std; #include <winsock2.h> #include <string.h> #define LISTEN_PORT 80 #define BACKLOG 5 #define PROTOCOL "HTTP/1.1" int _tmain(int argc, _TCHAR* argv[]) { bool t=true; while(t){ …

Member Avatar
Member Avatar
+0 forum 1

Hello all, i working on a server I have realized that it only is using the loop back address of my ip. It looks like this. [CODE] struct sockaddr_in from; int fromLen = sizeof(from); SOCKET msgSocket = accept(listenSocket, (struct sockaddr*)&from, &fromLen); if(msgSocket == INVALID_SOCKET){ cout<<"Error at accept: "<<WSAGetLastError()<<endl; closesocket(listenSocket); WSACleanup(); return 0; [/CODE] I didn't post all the code because its unnecessary. The loop back address 127.0.0.1 is in from.sin_addr . I do not want to use this i want to use the external address. Is there an external address within the struct sockaddr_in somewhere. The accept function i really …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I have been trying to get port forwarding going for 3 days with my d link DIR-628 router. Ive been checking to see if my changes to my dlink settings have taken effect at this web site and many similar. [url]http://www.canyouseeme.org/[/url] . I usually type in my local ip number into my browser. that takes me to the dlink login page. then i go to advanced -> port forwarding, and i add in my local ip address and specify the port numbers for tcp and udp. I save the settings and restart. Then i go check and no …

Member Avatar
Member Avatar
+0 forum 5

Hello all . I have a few simple one or two questions. I'm wondering what the limitations of a web server are. say i have xamp with apache in it running hooked up the the folder i usually put my web, sites on, can i type in my ip address in a browser, and go view that folder or its contents on another computer? I would assume if its possible it might look like this [url]http://ip:port[/url]. Is that correct format? Is it possible to view a web site that has no domain name assigned to it? I'm asking this for …

Member Avatar
Member Avatar
+0 forum 1

Hello Hello Hello. At the moment i am working on contacting my web server through my browser. I have got it working. I can communicate with my web server by typing [url]http://localhost[/url] into my browser. [CODE] // fakewebserver.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; #include <winsock2.h> #include <string.h> #define LISTEN_PORT 80 #define BACKLOG 5 #define PROTOCOL "HTTP/1.1" int _tmain(int argc, _TCHAR* argv[]){ while(true){ WSAData wsadata; if(WSAStartup(MAKEWORD(2,2), &wsadata) != NO_ERROR){ cout<<"Error at WSAStartup\n"; return 0; } SOCKET listenSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if(listenSocket == INVALID_SOCKET){ cout<<"Error opening socket: "<<WSAGetLastError()<<endl; WSACleanup(); …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I have made a web server in c++; I am able to type in my browser [url]http://localhost[/url] , this will contact my server and make a connection i can add a variable onto the end separated with a ?. I want to send messages to my web server it this way. this is going as planned and working well. The next step that has drove me made for 3 days, is why cant i type in my ip address into my browser and have it do the same thing. In my mind this is how chat servers and …

Member Avatar
Member Avatar
+0 forum 1

Hello people. Does anyone know if it is possible to post a variable to a c++ http tunnel or http connection. In php you can do this when you want to qualify someone on an email varification. People do this in a message so when someone clicks on the link to a web site, that link will contain a post variable it looks something like this. php [CODE] href="http://www.someting.com?date=9/15/05&age=21"> [/CODE] I wanted to be able to receive the post from a email click , from a c++ program using an http connection instead of using a whole web site. This …

Member Avatar
Member Avatar
+0 forum 8

Hello all . I have just started using the gcnew instead of new for the public ref class, that i have needed to learn for windows forms. I have a problem that shouldn't be as difficult as it is. I have a class that i made called vector2 . It is a vector with with slots in the method. It looks like this. [CODE] public ref class vector2{ public: System::String ^x; System::String ^y; System::Windows::Forms::PictureBox ^PictureBox; void Position(System::String ^ X, System::String^ Y){ x=X; y=Y; }; }; [/CODE] I do this to set the X Y values of the Position() Object reference …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I am trying to convert this type of string [CODE] array<String^>^ files = OpenFileDialog1->FileNames; to a normal string. [/CODE] I am using a file open form for my program and the file name that comes from the Ok on click is in that form array<String^>^ ; I need to change it to either a char or string, this is the closest that i have come to succeeding at it. [CODE] String ^ st= ""+filename; [/CODE]I cant find any documentation on how to convert it to something im used to working with like string or char. I am new …

Member Avatar
Member Avatar
+0 forum 1

Hello. I am working on many c++ programs right now that are mostly run in the form of an exe. I have noticed that most programs that i aquire from other people have some sort of installer. I can see how you would need to get all program files in one place. Why don't people just use on big batch file? Whats is the normal procedure for making an installer and why do people do it? I use ms visual, thanks people.

Member Avatar
Member Avatar
+0 forum 2

Hello all . Where could one find the dock panels and autohide thumbtack that is used in ms visual for the project manager and other stuff. I am using c++ forms in ms visual. So far i cant find any code for this, or any programs that contain this addition for my project. I can find similar stuff in C and mfc , lots of it in mfc. I hate mfc because its code is an eye sore for me. Worst comes to worst ill make my own. thanks for any advice.

Member Avatar
Member Avatar
+0 forum 1

Hello all i am just getting into using windows forms. I have been looking around on the internet for like a day now and cant seem to find any good code on how to add a table with columns , rows and labels on the top of the columns. I have also look in the Ms visual toolbox numerous times and cannot find a good table. Im surprized there's no simple table! does anyone know what the class name for it is so that i can contruct one, find some code with or where a table is in the toolbox? …

Member Avatar
Member Avatar
+0 forum 1

The End.