Member Avatar

Hello all. I am trying to figure our how to add a pin and unpin button on one of my ms visual forms. An example of this is the pin that in used on the top right of the solution explorer in ms visual. I know that in the basic mfc programs they used some kind of docking along with the auto hide and pin unpin. I have looked all over for code to do this work forms although i cannot find any. It really does look good so it would be nice to use. Thank you for your kindness.

0
1
Member Avatar

Hello all. I have a question with no code because i'm a beginner at mfc and find it very confusing. I can see that there is a message loop in mfc. From what i understand it is like an event in windows form applications. In my mfc application i want to have a function run, on a click of a button in my mfc. When this happens i want to run the function in my programs main thread. This is because the function has values that incriment every cycle and i need this function to continue running even after the …

Member Avatar
0
5
Member Avatar

Hello all. I am trying to get a function call from an onclick used in a html form it looks like this. [CODE] function work(strVal) { alert(strVal); return 1; } [/CODE] and this [CODE] <a href='#' onclick='work('word')'><img src='$RestaurantName' style='border-style: none' height='300' width='300' onMouseOver='mouseOver1()' onMouseOut='mouseOut1()'></a> [/CODE] I don't know javascript very well but i do know java, and this should work with a string. When i use the work() function in a onclick it only works with an integer. If i use it anywhere else i can use and integer or string. so if i do this it will cause a …

Member Avatar
0
6
Member Avatar

I am trying to make a function like this but i need the parameters to be a string . [CODE] function viewrestaurant(int) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("boxcenter").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","viewrestaurant.php?viewr="+int,true); xmlhttp.send(); } [/CODE] this works find when i use the function i can run it fine but only as an int as seen here [CODE] function viewrestaurant(int) [/CODE] How could i replace int with a string? it doesnt work, nor a var. thanks all …

Member Avatar
0
9
Member Avatar

Hello all . I use this code roughly to call some php code then run it in an html container. [CODE] function getVote(int) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("boxcenter").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","poll_vote.php?vote="+int,true); xmlhttp.send(); } [/CODE] It works well although everytime i use this function in anyway it takes me back to the top of the page everytime. Does anyone know of a way to just keep people in one place on my page when i …

Member Avatar
0
2
Member Avatar

Hello. I have been using a style sheet for some time now in my html project. The classes are made like this. .twoColLiqLtHdr #container { width: 80%; /* this will create a container 80% of the browser width */ background: #FFFFFF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 1px solid #000000; text-align: left; /* this overrides the text-align: center on the body element. */ } or this .twoColLiqLtHdr #sidebar1 h3, .twoColLiqLtHdr #sidebar1 p { margin-left: 10px; /* the left and right margin should be given to every element that will …

Member Avatar
0
3
Member Avatar

Hello all. I am making a website that requires put reviews into my database. I have restaurant sections. I want to have reviews stores per restaurant. When it comes to mysql data tables i can only imagen having one column for reviews then giving each picture an id to accociate with the proper web site. Is there a better way to do this that wont take too much computer time , thanks?

Member Avatar
0
4
Member Avatar

Hello all. I am trying to set a session variable as a string like this. [CODE] $_SESSION['something']="hello"; [/CODE]this does not work I also tried this. but it didn't work; [CODE] $name =$_SESSION['something']."hello"; [/CODE] and if i do this [CODE] $_SESSION['something']=$_SESSION['something']."hello"; [/CODE] the value ends up like this hellohellohellohellohello So what im trying to do is set a session string , but i cant find the correct way of doing it even after lots of research. Does anyone know the solution thanks!

Member Avatar
0
2
Member Avatar

Hello all . I am working on a small search for my website. It requires that i query the database and then display search results. In my database i have multiples. For example john on one row and john on the other. I want to display both of them. For now i can only display the information of one john. I don't know how to find the rest. My code looks like this. [CODE] mysql_connect("localhost","root","goingdown")or die("cannot connect"); mysql_select_db("listings")or die("cannot select DB"); $sql="SELECT * FROM data WHERE name='john' "; $result=mysql_query($sql); $row = mysql_fetch_array( $result ); echo "Name: ".$row['name']; echo " Age: …

Member Avatar
0
3
Member Avatar

Hello all. I have an email that i am sending with html. In the html is some php. I want it so that when someone opens the email i receive a confirmation. I am using this code for it. [CODE] mail($sendto, $subject, $message, $header); [/CODE] It does not work. One thing i have noticed is that, when i try to echo something to error test it, this happens. if i type my echo like this it works [CODE] echo(<p>"working"</p>); [/CODE] thats not normally how i would type it. if i type this how i normally would . it doesn't echo …

Member Avatar
0
3
Member Avatar

Hello all. I am trying to use java excel code that requires that i use a throwable class along with a main set up like this. [CODE] public void t()throws IOException{ GmailClient newGmailClient = new GmailClient(); newGmailClient.Main(); newGmailClient.addWindowListener ( newGmailClient ); newGmailClient.setInputFile("c:/Book12.xls"); newGmailClient.read(); } public static void main(String[] args)throws IOException { { GmailClient newGmailClient = new GmailClient(); newGmailClient.t(); } } [/CODE] the code above is from a program that i got working. I want to combine it with a java form. The code for running that form is below. i cant seen to get a form working unless i run …

Member Avatar
0
2
Member Avatar

Hello all. I am working with some code like this. [CODE] echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: 266px; width: 225px; '></div>"; [/CODE] I wanted to be able to control the size of this div with php conditions. I thaught i could do it like this, but its not working. [CODE] $someVariable = 200; echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: $someVariable px; width: 225px; '></div>"; [/CODE] $someVariable is the kind of information i would alter with the use of php control statements. I really would like to get this kind of action working. Does anyone know of something like this being possable? thanks. I guess …

Member Avatar
0
4
Member Avatar

Hello. I am new to php but not to c++; I'm trying to use a submit button to run some html divs and some gui. here is an example of this , very basic. [CODE] $hourglass1 = strip_tags($_POST['hourglass1']); if($hourglass1){ echo" MY DIV CONTAINERS"; } [/CODE] The problem is when i try to click anything else, it sets $hourglass1 back to false again and the div containers that were up close again. In c++ to avoid this, i would predefine variables. This way the variables would remain set. I tried to look this up for php but I do not know …

Member Avatar
0
13
Member Avatar

Hello. I am ok at php. I am making a web site. The problem is that when i try to decrease the size of the browser that contains my site, the elements on the page distort and get all tangled up. how do you make the browser just cut of anything that cant fit in the browsers window? thanks.

Member Avatar
0
3
Member Avatar

Hello. I have a game with code like this. [CODE] class manualSetPosition{ public: Ogre::ManualObject * manualDebugger; void SetPosition( Ogre::ManualObject * manual, Ogre::Vector3 mousepos ){ manual->position(mousepos); }; }; [/CODE] Thats a class I use to draw a grid. I build it like this in my project. [CODE] manualSetPosition ManualSetPosition[1226]; [/CODE]this works fine, but what i really want is to be able to do this. [CODE] manualSetPosition ManualSetPosition[1226][1226]; [/CODE] I get a stack overflow. Even if that class is totally empty it does this. I really need to be able to do this for my program to work right. So my question …

Member Avatar
0
4
Member Avatar

Hello i am building a game. The bigger it gets , the longer it takes to compile. I wanted to speed up compile time. I have a lot of headers and cpp's and they recompiled every time. I was thinking about when building my game, excluding some parts of it from the compile, so i can focus on one component at a time, instead of watching the whole game recompile every time. If files are present in my ms visual studio's project, is there a way to exclude some from the compile temporarily? thanks

Member Avatar
0
5
Member Avatar

Hello. I am i'm recently taking off in building a game. The problem at the moment, is that i fear i'm programming to much! I wouldn't know this because i'm new to c++, but how much code is too much for a modern processor? In my engines render loop i have many logical for loops and so on doing super complex things at once. I'm worried that this will slow down my computer, but its hasn't yet. Is there a way to keep track of this, in my ms visual compiler. Thanks, I had to ask before i went too …

Member Avatar
0
3
Member Avatar

Hello, i have been coding for quite a while now. Up until now i have not figured out weather or not to do this. [CODE] somthing * newsomthing; newsomthing->funtion(); [/CODE] or this [CODE] somthing newsomthing; newsomthing.function(); [/CODE] I know what a pointer is , but often i dont know weather or not to use one or not. I feel that this will turn into a problem one day if now resolved, can anyone tell me the difference? thanks.

Member Avatar
0
3
Member Avatar

Hello all. This is a quick question. I have learned quite a bit of assembly so far. One thing confused me though. Why would one push a register with nothing in it . for example push eax I have see this happen in code even when nothing has been moved into it like. How would pushing an empty register result in anything. Any help please and thanks.

Member Avatar
0
5
Member Avatar

Hello i have some brief questions about loading functions from a dll. Im having problems understanding the difference between a function adress and a function hash. For example i know that when i open up kernel32.dll in a dll export viewer. The function address of loadlibrarya is ox7dd774bc6 and then theres a relative adress. In all the code i read through i see that the hash of loadlibrarya is 0xec0e4e8e. Also in code i see the hash of kernel32 being used, which doesnt make sense either. So whats the difference between a functions adress and its hash.Does kernel32 have a …

0
1
Member Avatar

Hello. This code im going to show you, is supposed to allow one to view the contents of a register or memory location. Im using it on masm and it compiles ok. Although i dont know where the print routine displays register contents. Any words would be a big help, thank you. [url]http://support.microsoft.com/kb/85068[/url] [CODE] ; Assemble options needed: none .MODEL small .STACK .CODE Start: mov ax, 0FFFFh ; Load AX with something distinctive. call print_word ; Print the contents of the AX register. mov ax, 4c00h ; Prepare to exit. int 21h ; Exit. print_word PROC ; MS-DOS version. push …

Member Avatar
0
2
Member Avatar

Hello I am learning asm at the moment. Can somone help me. I need to output the contents of a register to the screen. How would i do this. I can create hello worlds, outputting strings. How would i output other forms of data. Cant find this anywhere.

Member Avatar
0
3

The End.