64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Hamrick

Is there a way to pass a function template to another function? I tried this but it doesn't work. [code=cplusplus] template <typename T> void template_function( T arg ) { } void function( template <typename T> void (*func)( T arg ) ) { } [/code] How can I pass a function …

Member Avatar for vijayan121
0
331
Member Avatar for Dsiembab

I have a xsl file that is saved as whatever.php. the style sheet is called by <?xml-stylesheet type="text/xsl" href="whatever.php"?> I get an error on firefox that it does not have the correct mime type. I save the xsl file under php because I need to use php in the code …

Member Avatar for Dsiembab
0
299
Member Avatar for go939

when i compiled my c++ code in linux platform (ubuntu), i got an error regarding with an array. the error states: array must be initialized with a brace-enclosed initializer. //source error long long byParam[2] = ""; can anybody show me a solution on my error...thanks

Member Avatar for Bench
0
132
Member Avatar for quintoncoert

Can someone please tell me what is wrong with the following code or if it is even legal? I am trying to access the text in a multitude of textboxes without having to go to each textbox manually. so i named them all similar enough. their names are all variations …

Member Avatar for quintoncoert
0
122
Member Avatar for tunday

Hi. I have developed PHP scripts (both server and client) and a SOAP/wsdl that work as expected. However, I would like to build the client side using Borland's C++ Builder 2006. This program will still access the web service using the wsdl while the server side script remains written in …

Member Avatar for tunday
0
436
Member Avatar for MitkOK

Hi folks. I Have a question : I'm interested how you generate query string to search DB with more than 1 form with LIKE. For example : We have $_POST['name'], $_POST['title'], $_POST['phone'], $_POST['email']. How do you generate sql query to search with two criteria ( name and phone ) ? …

Member Avatar for dezignwork
0
167
Member Avatar for no1zson

Massive thunderstorm here right now, I am trying to get off before I lose power. I have an array that is accepting inventory input from the user. The value of each product is figured as it is entered, simple instock number muliplied by the product value. I simply want to …

Member Avatar for no1zson
0
156
Member Avatar for phalaris_trip

Hi everyone, I've been googling this for a long time, and most of the hits are about keyboard shortcuts in the actual IDE... it's so annoying.. :( I'm working on a pretty big VS project (about 20 source files).. I have to add some keyboard functionality to it... simple stuff …

Member Avatar for phalaris_trip
0
229
Member Avatar for DinoBod

Ok I have a bug that is very hard to pinpoint. Upon Compilation I get Compiling... Forkin.cpp \vc98\include\xlocale(467) : error C2059: syntax error : 'end of file' ForkLift.cpp MainWnd.cpp \vc98\include\xlocale(467) : error C2059: syntax error : 'end of file' Mat4f.cpp Generating Code... Error executing cl.exe. Forkin.exe - 2 error(s), 0 …

Member Avatar for Killer_Typo
0
435
Member Avatar for jopal
Member Avatar for jopal
0
127
Member Avatar for sadaka

Hello everyone. Its been a while since I posted. I've gone through many threads regarding Linking issues that beginning programmers come across. Its the linking error - "error LNK2001 : unresolved external symbol." I admit I am a beginner and I also encounter the same problem. Going through all of …

Member Avatar for sadaka
0
104
Member Avatar for teklu

when I am trying to run the jar file is give me the message fail to load Main-Class manifest attribute from..... I am programming using netbeans IDE 5.5 any help

Member Avatar for teklu
0
169
Member Avatar for bapef

The problem I am having is one in which I am using getline to read in a name with spaces, and when I attempt to output it it is cutting off the beginning of the names. This is the code I am using. I also have to have the cin.ignore('\n') …

Member Avatar for bapef
0
3K
Member Avatar for saswati_mishra

Hi, I have an html page which is designed using tables. I would like to know that if I click on a button located in one cell of the table, it should open another page in a new cell of a different table without refreshing the entire page. I tried …

Member Avatar for Kelicula
0
92
Member Avatar for toasty525

Hi can anyone help me with this ? Im trying to create a page that lets a user click a link and once that link has been clicked the page no longer displays that link for that user, i have all the databases set up to record clicks but i …

Member Avatar for digital-ether
0
311
Member Avatar for ReverendBoltron

I have been working a bit in PHP and JavaScript and AJAX lately. I am very new at it all, so any help would be greatly appreciated. [B]Here is the question: [/B] What is the best way to make sure keep data from an AJAX call, and cut back on …

Member Avatar for ReverendBoltron
0
123
Member Avatar for Juwar

I was wondering if anyone could offer a solution to this database design problem. I have very little experience with relational databases in Access. I have only used databases just to get easy data, but now it is starting to get complicated. I read a little on relational database design, …

Member Avatar for dhassen
0
99
Member Avatar for katharnakh

Hi Bumsfeld, thanks for sharing, I haven't come across this before [quote=bumsfeld;398646] [code=python]# works on Windows or Linux, also Vista import os os.system(['clear','cls'][os.name == 'nt']) [/code][/quote] Can please tell me how is the following code is working. I mean, [code=Python] >>> ['clear','cls'] [True] 'cls' >>> ['clear','cls'] [False] 'clear' >>> ['a','b']['some_string' …

Member Avatar for StrikerX11
0
359
Member Avatar for Aldebaran

Why, oh why isn't this simple thing working? I just want to understand why the variable $file1 is always empty. Other input types work just fine. [code] <?php $file1 = $_POST['file1']; echo "file1:", $file1; ?> <form ENCTYPE="multipart/form-data" action="add.php" method="POST"> File<input type="file" name="file1" /> <input type="submit" value="Submit Information"> </form> [/code] Jill

Member Avatar for Aldebaran
0
117
Member Avatar for sillyboy

So I tried to google my problem, but for a change I didn't get any worthwhile answers. What I want to do is to have an external js file to define some functions (which will be used for form validation). Then I want to use the external functions inside each …

Member Avatar for sillyboy
0
102
Member Avatar for repole

I'm in the process of making a searchable database for the company I work at, and have run into a few problems. I've googled this stuff and had problems either understanding what I found or finding anything at all.. A. Sorting the table in my form I'm able to sort …

Member Avatar for repole
0
125
Member Avatar for Naseem89

Hi anyone I am a new member, and want to learn the c + + from the outset Please, Where can I find free electronic books for the education of c + +

Member Avatar for Naseem89
0
119
Member Avatar for nhlagumbi

i,m a bit stuck in my project, i need to i dentify some classes for my system and i sofar i have only came up with tow classes like CLIENT and COMPANY. can anyone help me. i have to submit my documat soon.

Member Avatar for jwenting
0
103
Member Avatar for krnekhelesh

Hi, I was using borland 5.5, and I tried introducing graphics using the followig code [CODE]#include<iostream.h> #include<graphics.h> $void main() { int driver,mode; driver = DETECT; initgraph(&driver,&mode,"\\tc\\bgi); circle(25,35,12); closegraph(); } [/CODE] But I get the error [I]graphics not supported with windows[/I]. So I tried [B]TURBO C++ 3.0[/B]. And it worked perfectly …

Member Avatar for krnekhelesh
0
593
Member Avatar for gattispilot

This is Orbiter: Ok what is wrong? I have start =0 at the beginning. then this: [code=cplusplus] case OAPI_KEY_K: // start if (start=0) start=0; else PlayVesselWave3(MySoundID,START,NOLOOP,255,22100); start=1; return 1; [/code] So start should be 0 until K is pressed. If K is pressed then the wav is played and start …

Member Avatar for gattispilot
0
199
Member Avatar for mohammadalipak

I don't understand what this line of code does. (PMOMISCHEADER & LPVOID are pointer datatypes)[code]typedef BOOL (CALLBACK * PFNMISCBLOBCALLBACK) (PMOMISCHEADER pmoMiscHdr, LPVOID pData);[/code]I need to understand this because an API I'm using takes a pointer of datatype PFNMISCBLOBCALLBACK as a parameter. Thanks in advance.

Member Avatar for mohammadalipak
0
91
Member Avatar for quintoncoert

is it possible to have global level methods in c#? I have several forms and they are going to use roughly similar logic. i can design methods which can work with them all depending on what parameters are passed to them but how do i make these methods global so …

Member Avatar for quintoncoert
0
138
Member Avatar for vanbeekjan

Has anyone code for a registration procedure in ASP. I will registrate the users in my database before they can use the database facilities. Users can ask services and see the results if they had access to the database

0
82
Member Avatar for balagod

Hi, I am creating a folder through php code. but the permissions for that folder is not setting. I identified the problem is apache is different usergroup,FTP is different user group. so i want to know how can i change user group of apache. or how can i add apache,php …

Member Avatar for balagod
0
122
Member Avatar for greeny_1984

hi every one, i want to know about configuring sql mail.i have sql server on my computer and i want to configure it to send sql mail.i want to know which account i have to use as local system account is not being accepted.when i try to create seperate account,i …

Member Avatar for greeny_1984
0
106
Member Avatar for vijaygandhi559

Hi, I am using websphere and trying to use javax.mail api . However i am receiving the errors as I am not able to import javax.activation.*; import javax.mail.*; the statements, the reason is Websphere does not recognize them, I am not sure whether i have the javax package. Could any …

Member Avatar for vijaygandhi559
0
157
Member Avatar for shadrakni

i just signup to ask you to show me the basic and advance script for creating a online game startup bot

Member Avatar for ~s.o.s~
1
360
Member Avatar for quintoncoert

Can someone tell me how to convert variables from one type to another in c#? Specifically i need to display an integer in a textbox. the textbox does not want to display it since the textbox has text and the integer is an int.

Member Avatar for quintoncoert
0
110
Member Avatar for quintoncoert

i am very new to c# and dont understand all of array passing to methods. chief reason for these misunderstandings is the keyword param. param can only be used in a method header once and is always passed by value. also it works on a number of individually declared variables …

Member Avatar for f1 fan
0
169
Member Avatar for Naveed_Cn

Hi Everyone Please anyone tell me how can I use the following code in vb6 Module. Dim db As Database Dim rs As Recordset Private Sub Form_Load() Set db = OpenDatabase("C:\MyDatabase.mdb") End Sub Thanks in advance

Member Avatar for manoshailu
0
96
Member Avatar for unclepauly

I've been learning about aggregating COM objects. I dont understand why we 'need' 2 IUnknowns (ie the delegating IUnknown and the Non-delegating IUnknown). Surely the same effect can be achieved with just the 1 usual IUnknown? Eg, The outer component implements interface IX and aggregates interface IY, which is implemented …

Member Avatar for unclepauly
0
170
Member Avatar for Kob0724

So I've got this jtable set up that displays the contents of an arraylist by use of the handy dandy table model (see code below). you'll notice it calls a method makeTableArray() (see code below) in order to figure out what the array that its going to use is. In …

Member Avatar for Ezzaral
0
246
Member Avatar for adotl

Im starting a course next year which will cover a C++; I was wondering whats the best software to start coding in C++? I noticed my college use NetBeans which is an IDE which may be a start? Any help appreciated.

Member Avatar for jbennet
0
141
Member Avatar for mauro21pl

Hi to all I have a quick question. How can go through the integer to find if there is any specific number. For example my input would be 234446 (integer is of type long),and now I would like to check that integer and find how many 4's are in there …

Member Avatar for mauro21pl
0
111
Member Avatar for rdhiravani

Hi, I want to add a jar file to another jar file in such a way that my code should be able to access it(ie. internal classes of that jar). Thanks in advance.

Member Avatar for jwenting
0
4K
Member Avatar for minigweek

[B]char *(*c[10])(int **p); [/B]Ok, what does the above mean ? I compiled it fine. But I can't figure what it means :( Also, how to make sense of any such questions ? I know pointers, and have a concept of it. But this one really baffled me ! Can anyone …

Member Avatar for minigweek
1
119
Member Avatar for Stivi

Hi, is there some way how to force asp.net (C#) webpage wait with other orders in code? I mean something like this: 1 - make something 2 - wait 5 seconds (for completing previous tasks) 3 - continue with other orders Thanks, Stivi

Member Avatar for rpgivpgmr
0
578
Member Avatar for Dsiembab

Hello, I was wondering if someone could point me in the right direction. Is their anyway in php that I can change the outlook of an xsl file and include variables from my php script. I have an xsl file, I changed the file extension to php and it worked …

Member Avatar for Dsiembab
0
120
Member Avatar for Lomas

[code=php] <?php if ($id == 1 && $lang == 1) { echo "hello"; } ?>[/code] hey guys i am working for my final year project. i have a problem. when i tried to run this url on my pc [url]http://localhost/filename?id=1&lang=1[/url] it wouldn't work.... but when i tried this on my …

Member Avatar for Eko
0
135
Member Avatar for Firestone

I'm trying to write a program to reverse a string, letter by letter. This was my latest attempt: [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char oldMsg[100], newMsg[100]; int cd = 12, cu = 0; strcpy(newMsg, "Hello World!"); while (cd > 0) { newMsg[cu] = oldMsg[cd]; cu++; …

Member Avatar for Firestone
0
154
Member Avatar for tunday

Hello, please I need help with this problem. I am writing a web project using PHP. I have developed a wsdl for this project. Whenever I send a request from my cliet side, the server script handles it appropriately by calling the relevant function. However, the script returns null values. …

Member Avatar for tunday
0
101
Member Avatar for kalaiselvi.v

I want to connect to the database mysql . I am using Type IV driver Connector/J. How to connect to the database. When i load the driver class its working after that i get this error SQL Exception :Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** …

Member Avatar for masijade
0
111
Member Avatar for zenun

If you can help me? I have some problems.I have to put the five marks in five subjects for a student.The student must have ID,Name ,Surname,Subject and Mark. This we have to write in a file.Then we have to write in Screen the results(toread from file).After that I have to …

Member Avatar for krnekhelesh
0
101
Member Avatar for satish.paluvai
Member Avatar for danysabin

Hey, I was doing some coding for fun, just practicing and seeing if i could still all the sorts and searches. My question is unrelated to that however because i can't seem to figure out an easy way to generate random char arrays. i found a random() function in the …

Member Avatar for danysabin
0
508

The End.