199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pdk123

I have a approximate following class class ClassA : public ClassB { void HandleMessages(const u8 *pP, const u16 nMsgBodyLen); static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId; }; When trying to access the map from the HandleMessage, I am getting the linker error, saying the undefined reference to m_mSessionId2CCRNum2DefaultBearerId; Could some c++ experts …

Member Avatar for NathanOliver
0
315
Member Avatar for Riptyed

Hey guys and gals, Newcomer here, and new to IT world as well. Recently overhauled company website, installed Wordpress. Same webhost and DNS. After the changes, visiting the website via the company network often receives the following error: "Server Error 403 - Forbidden: Access is denied. You do not have …

Member Avatar for JorgeM
0
171
Member Avatar for saxon84

Hi, I'm new to c++ but I'm having a go trying to create a jagged array int** DATA = new int*[10]; DATA[0] = new int[100]; //this works DATA[1] = new int[100][5]; //but this don't DATA[1][100][1] = 1; Thanks

Member Avatar for deceptikon
0
3K
Member Avatar for GlenRogers

I've been using thisJQuery code to fade in divs (all of the same class .showme) But what I would like to do is fade out the previous div as the next one fades in. Can anyone offer assistance on this? $(document).ready(function() { /* Every time the window is scrolled ... …

Member Avatar for GlenRogers
0
273
Member Avatar for Slyte

Ok, so while practicing python, plotting and quadratic equations - I found this weird behaviour in plotting. The function 'func' defines one of the solution to a quadratic equation. The solution being *0.5(x+1 - sqrt((x+1)^2 - 4x))* And so I tried plotting this value against different x values. I get …

Member Avatar for Slyte
0
196
Member Avatar for bikash_2

import pygal data = [ ["Python", 30.3], ["Java", 22.2], ["C++", 13], ["Ruby", 10.6], ["Javascript", 5.2], ["C#", 5], ["C", 4.1], ["PHP", 3.3], ["Perl", 1.6], ["Go", 1.5], ["Haskell", 1.2], ["Scala", 1], ["Objective-C", 0.4], ["Clojure", 0.2], ["Bash", 0.1], ["Lua", 0.04], ["TCL", 0.03] ] # Make a Pygal chart pie_chart = pygal.Pie() # add …

Member Avatar for Gribouillis
0
130
Member Avatar for shady atef

<?php require_once '_includes/_coo.php'; $id =$_post['user_id']; //error here -> line 4 // sending query mysql_query("DELETE FROM example WHERE BookID = '$id'") or die(mysql_error()); header("Location: index.php"); ?> error in line 4

Member Avatar for minitauros
0
149
Member Avatar for davy_yg

update_image2.php $result2 = mysql_query("SELECT * FROM image_upload"); $data2 = mysql_fetch_array($result2); if($image_width > $data2['maxwidth'] || $image_height > $data2['maxheight']) { echo '<br>'."Image is too big".'<br>'; echo $image_width.'>'.$data2['maxwidth_bn'].'<br>'; echo $image_height.'>'.$data2['maxheight_bn']; exit(); } Successfully upload pictures Image is too big 995>1000 227>240 I wonder why the message says the image is too big?

Member Avatar for davy_yg
0
84
Member Avatar for Sammys.Man

Hi guys, wondered if someone could help please, i am trying to display a championship table from the 3 tables i have in my mysql. tbl_champ holds the championship name (nitro) and date (2015) tbl_rounds holds the round name (round1 so on) the date (01/01/2015 so on) and the champ_id …

Member Avatar for Sammys.Man
0
139
Member Avatar for prafulla23

I m new in jasper report and eclipse. Actually I created a receipt in jasper studio (.jrsml file) and I want to change the report properties on run time. Description: I want to fetch a report properties in jsp page and user can change this properties at runtime and save …

Member Avatar for prafulla23
0
531
Member Avatar for immortall69

Basically i'd like to click this "button" only once in the div "data-aid="115553109754009608849"" (this button is present in every div, and has no name or id, but i can click it by his class if i can locate him or walk the entire DOM - just that i don't know …

0
131
Member Avatar for pravinkumar1

Is any one know about Quick Basic is a popular DOS programming language developed in 1980’s and it was widely used by many of the US companies for games, software for small businesses. As the programming technique had easy steps, it derived the name. It is an updated version of …

Member Avatar for pravinkumar1
0
434
Member Avatar for Niloofar24

Hello. I'm new to PHP, i've started it yesterday. I want to creat a simple CMS with (PHP and PDO), what should i do? I'm going to start with creating the CMS core. I want to create sth like a simple wordpress. What should i do? Where should i start …

Member Avatar for Niloofar24
0
1K
Member Avatar for MamaTina21

I have this assignment: Write a program with three functions: upper, lower, and reverse. The upper function will accept a pointer to a string or C-string as an argument. It will step through each character in the string converting it (where necessary) to uppercase. The lower function will accept a …

Member Avatar for ZZMike
0
848
Member Avatar for lewashby

[Linux] I have had a hard time understanding pointers beyond a simple array step through and modifying one address at a time. When I get into pointers to C-structures, C++-objects and classes my head starts to hurt. And that's just to name a few. I find the C syntax `*++p` …

Member Avatar for mike_2000_17
0
434
Member Avatar for fnk88

Hi, I need your help please..I am given the following data and I need to write C++ commands to get the array filled... a[source][destination]=some value how to write C++ code for the following? loop condition can be used a[0][0]=0; a[0][1]=1; a[0][2]=1; a[0][3]=1; a[0][4]=3; a[0][5]=2; a[0][6]=3; a[0][7]=3;

Member Avatar for DavidB
0
236
Member Avatar for aru786

umm i have vry serious issue with my php code...im trying to pass the value of a radio button which is being fetched from the database to an onclick function. the function is being called on the submit button.But the function is not getting called...how shud i solve this problem

Member Avatar for Wolf_2
0
117
Member Avatar for gmantsang

I have code that when executed will give me a long list output, which is fine, but how can I get it to print without the parenthesis and commas? example: answer =('7', 'Q', '5', 'H', '9', '4', '3', '8', 'L') but I'd like it to print like this: 7 Q …

Member Avatar for gmantsang
0
267
Member Avatar for markdean1989

My main issue here actually is Visual Studio installer (just could not find a specific category above). So here is my poblem. Visual Studio won't progress installing. Once it reaches the Visual Studio C++ Runtime version (and some numbers), it does not progress any further. I even tried leaving my …

Member Avatar for markdean1989
0
247
Member Avatar for sarathsshanker

The code: print [c[i] for c in ['as','df'] for i in range(len(c))] outputs: ['a','s','d','f'] while, print [c[0] for c in ['as','df']] outputs: ['a','d'] - The first letter of each word. shouldn't the output be ['a','d','s','f'] - Why is this different?

Member Avatar for sarathsshanker
0
373
Member Avatar for tom.lynd.39

How does this code work?? I am at a loss how the tail recursion works here? #include<iostream.h> #include<conio.h> void back(void); void main(void) { cout<<"Enter a sentence: "; back(); getch(); } void back(void) { char ch; ch=getche(); if (ch!='\r') {back(); cout<<ch;//Read a character, print the rest of the input in reverse, …

Member Avatar for mike_2000_17
0
168
Member Avatar for asaidi

Hi i have a table route day,position... day position 1 1 1 2 1 3 1 4 then day pass to number 2 and position passes to 1 i have these data in my table but when i order the table by day..position are all messed..if i order the 2 …

Member Avatar for asaidi
0
227
Member Avatar for PM312

i have app.config file in my application for storing/updating connecting strinng to my database.But when i installed my application on user machine i cannot locate the file to update new database link. How can i find the file on user machine .i.e where the file is installed on hard drive.

Member Avatar for AleMonteiro
0
253
Member Avatar for jcomputing

I am trying to install drush on a shared server with hostgator. Everything goes smoothly when I try to run drush basically it says command not found. Please can anyone help. Kind Regards, Jonathan

0
212
Member Avatar for jacob21

Chats table maintain chat history b/w users and agent.Type(0,1,2) indicates start and end point of chat by user/agent. Please suggest how we cam give each chat a unique session For Example Chat b/w company_id(5969) and user_id(67) has 1 unique chat id. Not Sure Is it possible in query or have …

Member Avatar for AleMonteiro
0
223
Member Avatar for Hafiz_2

write a c++ program to declare an array named marks of ten elements.

Member Avatar for Moschops
0
47
Member Avatar for SkateX

Greetings, I'm having problems with my output. Essentially I am just trying to print out any Cat who is over 3 years old and has Claws. But my output keeps printing out either nothing at all or the 3rd cat 3 times. I've struggled with this for hours trying to …

Member Avatar for JamesCherrill
0
306
Member Avatar for opman234

Please help me. I am trying to insert into mysql database, but it is throwing this error. **Fatal error encounter during command execution.** this is the sample of code am trying to run cn.Open() cmd.Connection = cn cmd.CommandText = "insert into corps(callup,statecode,surname,firstname,othername) values(?,?,?,?,?) With cmd.Parameters .Add("@callup", OleDbType.VarChar).Value = txtcallupno.Text .Add("@statecode", …

Member Avatar for mahardikawkwk
0
554
Member Avatar for machdohvah

I have built a Canasta card game in MS-DOS and I am now stuck on how create a computer competitor. What I need is someone to tell me how the computer should go about his turn in a four-handed partnership game. This game requires two cards to draw and two …

Member Avatar for Nutster
0
227
Member Avatar for psalm1975

I have been trying to write a simple program to issue Identify device ATA command to a drive with VB 2008 express, and has so far been unsuccessful Below are the code I have so far. But everytime I call the DeviceIOControl, it always return false. Can someone tell me …

Member Avatar for abonito1
0
587
Member Avatar for sarathnair

HOW CAN I INCLUDE JQUERY SLIDER INSTED OF PHP WITH LOOP PLS HELP...

Member Avatar for diafol
0
155
Member Avatar for cambalinho

finally i have the static control transparent: //creating the form: hwnd = CreateWindowEx(0, classname, strCaption.c_str(),WS_OVERLAPPEDWINDOW | WS_TABSTOP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, parent, NULL, mod, this); //sending a message for subclassing: case WM_CTLCOLORSTATIC: { return DefWindowProc(HandleWindow, msg, wParam, lParam); } break; //heres how i create a static control with ownerdraw style: …

Member Avatar for cambalinho
0
760
Member Avatar for cambalinho

heres my image class: class image { private: ULONG_PTR m_gdiplusToken; Gdiplus::GdiplusStartupInput gdiplusStartupInput; HDC hdcimage=CreateCompatibleDC(NULL); HGDIOBJ obj=NULL; HBITMAP btBitmap=NULL; Image *img; bool isimgused=false; int imageheight=0; int imageweight=0; int framecount=0; int intSelectFrame=0; int framedelay=0; string strfilename=""; Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent; HDC hdcwindow; bool blnTransparent=true; HICON HICONFromHBITMAP(HBITMAP bitmap) { BITMAP bmp; GetObject(bitmap, sizeof(BITMAP), &bmp); HBITMAP …

Member Avatar for cambalinho
0
302
Member Avatar for jjones0150

Hello Guys, I'm having trouble getting my code to run correctly. I need the program to ask the user do they want to continue after they guess the number correctly. If they say "y" the loop should restart if they reply "n" the program should end and close. I will …

Member Avatar for JamesCherrill
0
2K
Member Avatar for cambalinho

the control have the WS_TRANSPARENT style. and: case WM_ERASEBKGND: { return TRUE; } break; case WM_CTLCOLORSTATIC: { return (LRESULT)GetStockObject(NULL_BRUSH); } break; case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; image imglabel(test->rcItem.right-test->rcItem.left,test->rcItem.bottom-test->rcItem.top); if(inst->blnTransparent!=true) FillRect(test->hDC,&test->rcItem, CreateSolidBrush(inst->clrBackColor)); else FillRect(test->hDC,&test->rcItem,(HBRUSH) GetStockObject(NULL_BRUSH)); FillRect(imglabel,&test->rcItem,CreateSolidBrush(inst->clrBackColor)); if(inst->imgtest.haveimage()) DrawHICONtoHDC(imglabel, inst->imgtest,1,1); SetBkMode(imglabel,TRANSPARENT); char *text=(char*)inst->strCaption.c_str(); SetTextColor(imglabel,inst->clrTextColor ); DrawTextEx(imglabel,text,-1,&test->rcItem,DT_LEFT,NULL); if(inst->blnBorder==true) DrawEdge(imglabel, &test->rcItem,BDR_SUNKENINNER | BDR_RAISEDOUTER,BF_RECT); …

0
105
Member Avatar for benphipps

Hello all, I am having trouble with my programming assignment in which we have to build a MIDI scale player. I am willing to send the assignment brief and my current to anyone willing to help. Cheers, Ben

Member Avatar for xtian170174
0
154
Member Avatar for asaidi

Hi how i can use this sql in php.. SET @a = 0; UPDATE van SET position = @a:=@a+1 where day='2';===>can be variable it goes from 2 to 30 thanks

Member Avatar for asaidi
0
284
Member Avatar for bhagyesh_1

Hello Friends, i am having a hard time coding for **8 Puzzle using DFS** (depth first search). my code uses linked list but apparently its "not ok". so can any1 please help me by sending me a documented code (so i understand). I am kinda on a deadline. -thank you …

Member Avatar for Nutster
0
6K
Member Avatar for PM312

i have below code to send email in outlook 2013 Try Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.Credentials = New Net.NetworkCredential(OutlookID, OutlookPassword) SmtpServer.Port = *** SmtpServer.Host = "smtp.office365.com" SmtpServer.EnableSsl = True mail = New MailMessage() mail.From = New MailAddress(OutlookID) mail.To.Add(TbxTo.Text) mail.Subject = TbxSubject.Text mail.Body = TbxBody.Text …

Member Avatar for PM312
0
466
Member Avatar for KenSquare

I worked on a program a few years ago that takes data from a series of text files and loads an Access database. I added to the code from a program started by someone else, so I did not write the imports and declarations. They used an ADODB.recordset, addnew and …

Member Avatar for KenSquare
0
294
Member Avatar for KennieA

Please I am a beginner to Visual Basic can anyone you help with this coding: Write a program that plays “guess the number” as follows: Your program chooses the number to be guessed by selecting an Integer at random in the range 1–1000. The program then displays the following text …

Member Avatar for Reverend Jim
0
516
Member Avatar for patodeborracha

Friends! I Have this JavaScript and the Validade Form not Work After I Select a Ajax Populate SelectBox. If not Select and Populate with Ajax, Validade Form Work. When Try Select (District) and Ajax Populate SelectBox SubDistrict, Validade Form Not Work... $.ajaxSetup({ cache: false }); $("#PriceForSale").hide(); $("#PriceForSeason").hide(); $("#PriceForRent").hide(); $(document).ready(function() { …

Member Avatar for AleMonteiro
0
190
Member Avatar for Satyam_1

I have developed an application in vb.net with MS access. In a form I have a Datagridview and I retrieve the data by databindingsource. I am copying the data from datagridview to textbox and then to another table in database. I want- after being copied the color of selected row …

Member Avatar for Satyam_1
0
4K
Member Avatar for JOSheaIV

Okay so this is for those who do or have developed for a living. Long story short, we had a meeting today where we finally set up standards for writing our code. Most of them I was sadly the blacksheep and lost my arguments (they mostly came from the one …

Member Avatar for JOSheaIV
0
149
Member Avatar for RikTelner

Lately I've been playing around with Unity3D. The one fun thing was, you were able to execute command from another file by using. `GetComponent()`. What you were able to do is, for example set users speed, even though script wasn't attached to player, so you technically were able to execute …

Member Avatar for djjeavons
0
165
Member Avatar for Lacrecen

hello!~ i have a search button on my form and i need to search all the information inside the "information" table. i have 10 fields. what i've code is: adoInfo.RecordSource = "select * from information where name+age+score+birthdate+gender+civilstatus+citizenship+contactnumber+address+email like '%" & txtSearch.Text & "%'" adoInfo.Refresh If adoInfo.Recordset.RecordCount = 0 Then MsgBox …

Member Avatar for slavica.k
0
206
Member Avatar for manalibhadula

Hi I am trying to connect to a server, to transfer a file. I have added remote to the known host file of source server and generated public key. From terminal i am able to login to remote server without password, but here through java , i am getting below …

Member Avatar for manalibhadula
0
298
Member Avatar for janicemurby

hya i want to show each user there own id number for identity purposes so far i have <?php include("config/db_connect.php"); include("config/ckh_session.php"); ?> <?php $userinfo = mysql_query("SELECT user_id FROM user"); ?> <ul> <li>You must be fully clothed, no nudity.</li> <li>Your face must be clearly visible although you may obscure your eyes …

Member Avatar for janicemurby
0
215
Member Avatar for cambalinho

when the form is activated: case WM_ACTIVATE: { if (wParam==WA_INACTIVE) { SetWindowText(inst->hwnd,"unactivated"); FormActivated = NULL; } else { SetWindowText(inst->hwnd,"activated"); FormActivated = inst->hwnd; } return 0; } break; when i create the timer: case WM_CREATE: { if(WindowMain == NULL || WindowMain ==GetDesktopWindow()) { WindowMain = HandleWindow; } SetTimer(inst->hwnd,JoystickTimer,150,NULL); SetTimer(inst->hwnd,KeyBoardTimer,150,NULL); SendMessage((HWND)lParam , …

Member Avatar for cambalinho
0
146
Member Avatar for Joemeister

Hi guys, I Googled this till the end and can't find a solution to this. What I want to do is the following - I have Runners with attributes like their Name, ID, Position and Time. All those are added for each runner in a listbox, seperated by commas. Like …

Member Avatar for djjeavons
0
374

The End.