Member Avatar
I am creating multiple C++ DLLs which have a C wrapper around them for use by an external application. I wanted to have a single error handling library that each DLL has access to. If I created the error library as a static library and then include it in the …
by Sarlacc in Software Development ()
Member Avatar
There is a problem with static variables and functions in how it is used by apps and frameworks in PHP , they are used as global functions or parameters while this is by far what they mean. It is easy to write the same functional or even procedural code in …
by jkon 385 in Web Development ()
Member Avatar
Introduction A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, C++, D, …
by mike_2000_17 2,669 in Software Development ()
Member Avatar
I know this has been asked before, but I can't find any simple answers for a noob like me in C#. What exactly is a static method. I mean what does it mean to be static vs. nonstatic. I know in the code with the main method we use what …
by theashman88 36 in Software Development ()
Member Avatar
Hello All. Been playing around with some linked dropdowns. It seems to be a recurring theme here on DW, so I thought I'd offer this up as a possible solution or for discussion, to see how it could be improved. The premise for this set of linked dropdowns is that …
by diafol 2,983 in Web Development ()
Member Avatar
Hi guys, I wrote the following code: For some unknown reasonable reason, I get an error for the static method call although I ran it through another one... Please help me make it complie as well... Thank you all !!
by Adami -3 in Software Development ()
Member Avatar
My header file now i am including this in two source files IN THE SAME PROJECT. multiple definition error. i have used static specifier in header file . please help me understand this.i think static makes internal linkage. regards, ravi
by ravi_14 in Software Development ()
Member Avatar
hi i can't undestanding this why the main function in java is static and static function can call using class name. And why we declare main function as public. i can not understanding this procedure of main function in java. plz help me.
by moaz.amin.37 -12 in Software Development ()
Member Avatar
Hi, all. I'm have a class EnemyController with a function Spawn(...) that instantiates a new object of the appropriate type. I want to call Spawn from somewhere like my TileMap class to create a new Enemy in my tile collision method. Here's what I have so far... I keep getting …
by jkhippie in Game Development ()
Member Avatar
my question is that when we use static data member and ststic function and nobody can not satisfy me about this question i need actual reason of using the static data member and ststic member function
by moaz.amin.37 -12 in Software Development ()
Member Avatar
Similarly, you can add more fields to an enum and simply provide accessor methods to retrieve them. For example you could change it to have an extra field indicating an output directory to write specific types of data to, and a getter method to return that directory.
by jwenting 1,583 in Software Development ()
Member Avatar
Why isn't the Microsoft built in class Random class an type static class as the Math. class is. Why didn't they make this class static?
by castajiz_2 35 in Software Development ()
Member Avatar
method non static -------------------- we will return value of function user to use it in function conDB to give value into thisUSER = user(h); Connection conn = DriverManager.getConnection(DB_URL,USER,PASS);
by ameer.mhmed in Software Development ()
Member Avatar
I keep getting loads of linker errors that probably have something to do with virtual-functions/definitions and/or static class members... I've seen several relevant posts but none of the solutions suggested work, can you see wht the problem is here? My projects consists of 3 files: BALLS.H BALLS.CPP and MAIN.CPP to …
by Tsaou in Software Development ()
Member Avatar
i have some problem about link the library to executable. i tried to statically linking but when i create the .a file i always failed, what i want to know is there any way for the exe look up into current directory instead of the system if i has all …
by Sugondo in Software Development ()
Member Avatar
Hello, I noticed that in c++ everything that can be done using a static function in a class could be done by using a public function in the same namespace. Assuming that you bind your classes in a namespace these functions do not take up names in the global namespace. …
by Labdabeta 182 in Software Development ()
Member Avatar
Hey everyone, So I am having trouble getting my head wrapped around a php script I need to build. What I am trying to do is pull data from a MySQL database table (dynamic content) and match it to an html table with static content. I guess an example of …
by PixelatedKarma 65 in Web Development ()
Member Avatar
Hi, In Virtual Box I've installed Fedora 17 and setup LAMP development environment. I've set the static ip to access the localhost and the applicaions/projects. Now I would like to configure it as to access them using the static IP from the host machine (Windows 7 OS). How can I …
by ronaldpaul in Linux and Unix ()
Member Avatar
currently I have a class function: how do I correct my macro definition to generate the corect code?
by CPT in Software Development ()
Member Avatar
this is my contacts class im getting this error when i submit the form Fatal error: Using $this when not in object context in /opt/lampp/htdocs/pbook/inc/contacts.php on line 50
by kiLLer.zoh_1 in Web Development ()
Member Avatar
I was doing my assignment till I reached this point. Add a static Date toDate(String str) method to the DateTest class. If the method is called with a string like “23/5/2013”, it will create and return the corresponding date object. If the input string is not valid date, the method …
by sliobra in Software Development ()
Member Avatar
The following code gave error on gcc compiler But when static is removed from int a then it runs with no errors..Can someone please clear the doubt??
by saurabh.mehta.33234 13 in Software Development ()
Member Avatar
So I have been working on this project for quite some time and I can't figure out why I keep getting an "Illegal Start of Expression" error. I tried moving the variables above the main method and that only returned the same error but instead of the error occuring at …
by nickerst in Software Development ()
Member Avatar
I'm just learning html but already have a domain, so I did a quick and dirty under construction page to replace the advertising-littered default page that the webhost was using. It's dirt-simple and not very good, but I'll make it better as time goes on. Is there any rule I'm …
by Eyeteeorg in Software Development ()
Member Avatar
Programe #1 inside file.h inside main.cpp Programe #2 inside file.h inside main.cpp Program#1 is running fine, but program#2 gives linker error: error LNK2005: "int GlobalVar" (?x@@3HA) already defined in file.obj I know the header files are never compiled. Then in the above case, how the compiler knows the definition of …
by vikuseth in Software Development ()
Member Avatar
Here is the exercise: My assumption it requires static variable that would remember how many times function was called. This is what I came up with, but on second call (according to codelab) it returns wrong value. Appreciate any advice.
by marnun in Software Development ()
Member Avatar
I need a way to do a cast without being returned a pointer to a new address but, the same address as the original. Something like this:
by James19142 -4 in Software Development ()
Member Avatar
Member Avatar
I need a help? I m designing a webpage. I have used <div>s everywhere, from header to footer, moreover I have used relative positioning with top and right tag. Somewhere top value has gone -1200 and so. At last I m left with about 800px of useless area below the …
by tabj in UI / UX Design ()
Member Avatar
I use dr java for linux to run my code. I've been running into a bunch of errors recently while running this simple program. The code compiles fine but whenever I run the java file, I get the error; Static Error: Undefined name here's my code; (I've got two files, …
by Pyler in Software Development ()