Hi! I wanted to use PHP do do a little thing, but I needed to know how to get a variable from an external document (say external.php) and use it in a function in a PHP document (internal.php).
I was thinking maybe something like this:
Code for external.php
$variable = "true";
Code for internal.php
if ($GETFROM{'/external.php'}['var...
Hello,
The C# scripting environement in Unity3D (runned under Mono) has a nice behavior when detroying objects. All the references that point to the destroyed object gets automaticly null :
GameObject ref1 = (GameObject)Instantiate(obj);
GameObject ref2 = ref1;
if (ref1 != null)
Debug.Log("ref1 is not null");
...
Hi - we have more than 30 projects and 7 web project solutions.
In our current build architecture, out of 30 projects about 20 projects constitute the app, db and other lower level layer projects and are being used by the remaining 7-8 web layer projects.
Web projects have each of the lower level projects as project reference and in ...
Hmmm. Okay after revisiting PInvoke, I'm sure that I don't quite get it :-/ (just asked this question)
Let me illustrate the code I need to handle. It works when I use "Add Reference --> COM --> Microsoft Shell Controls and Automatation" ... but sadly it places a reference in my project that looks like this: "C:\Users\Tim\Documents\Visu...
Every time I try to find references to a method in a C# (ASP.NET) application I am developing, a screen always displays saying, "Preparing files for project 'MyProjectName.'
Visual Studio then appears to "index" my entire project (with a message saying, "Preparing file 'filename' for refactoring.") This process takes very long and is b...
I've compiled an assembly for MySql.Data.dll and would like to add it to a new Visual Studio Project. I'm lost on the correct terminology and how best to go about this, but the end goal is to distribute this dll so that it's included with the application when the application runs. This is to avoid having to GAC the dll on the end user'...
Forgive me about the title, I have no idea what this is called.
I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.
Here's example code, p...
How do i reference the dll file from the qt project. can someone give me the sample .pro file?
Thx.
...
Forgive me about the title, I have no idea what this is called.
I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.
Here's example code, p...
I'm looking to submit a patch to the D programming language standard library that will allow much of std.math to be evaluated at compile time using the compile-time function evaluation facilities of the language. Compile-time function evaluation has several limitations, the most important ones being:
You can't use assembly language.
Y...
How do I refernce the qjson.dll file from one of qt project?
For eg :C:\qjson-0.7.1\qjson\build\lib , in this location, I have qjson.dll and qjson.dll.a file. I want to use that dll from my qt project.How should I point to that location in that .pro file. I can't compile successful, the error that I got is
C:/QTTest/foo/foo/main.cpp:6:...
This might be a bit silly, but where can I find a reference (not code) that tells me, what classes (in the .NET-Framework) implement an interface? Is this even available?
I am thinking of the list one gets in the Java-API-documentation unter "All Known Implementing Classes" (like here for example: http://java.sun.com/j2se/1.5.0/docs/api...
Hello, I'm using VB 6.0 and it gives me:
"Compile Error:
Can't Find Project or Library"
in this sub:
Private Sub MDITimer_Timer()
Dim textStr As String
textStr = Format(Now, "dd-mm-yyyy hh:mm:ss")
StatusBar.Panels(1).Text = textStr
End Sub
I made it like this and the error still was in the Format function (so it is not a...
Hi,
I did a bit of research on the topic, but haven't found the "it" book.
Do you have recommendations for books on developing web services? Ideally it explains from the beginning, thought process, development process, maintaining the service, tracking, optimization, and so on. Basically it would guide me through developing web servic...
I have a javascript function that goes something like this:
function doSomething(me) {
var isMeChecked = me.checked;
for (i=0;i<=10;i++) {
me.checked = !isMeChecked;
alert (me.checked);
}
}
I assumed that isMeChecked would remain constant after the first load, but it apparently is a ...
I have a singleton factory and would like it to return a reference to the object instance so that I can use the singleton factory to destroy the instance and not have instances elsewhere in my code to survive.
Example of what I would like to be able to do:
$cat = CatFactory::getInstance();
$cat->talk(); //echos 'meow'
CatFactory::destr...
Edit: changed class names.
I'm using Fluent NHibernate (v 1.0.0.614) automapping on the following set of classes (where Entity is the base class provided in the S#arp Architecture framework):
public class Car : Entity
{
public virtual int ModelYear { get; set; }
public virtual Company Manufacturer { get; set; }
}
public class ...
when I was looking for some MVC framework, I got the website:
http://www.phppatterns.com/docs/design/archive/model_view_controller_pattern
however, like the code listed there makes me confused about references.
For example:
$dao=& new DataAccess ('localhost','user','pass','dbname');
$productModel=& new ProductModel($dao);
each ...
I am developping a CORBA like inter object protocol that would support object aggregate transmission.
When objects of an aggregate are serialized, they may have references to objets serialized later. These are forward references. A simple example is a circular list. If each object has a reference to the previously serialized object, th...
I got a class called Property (from external library == cannot be modified) that has private overloaded & operator. I use this class in another class as a property and (for sanity reasons) I'd like to return a reference to this property through the Get method. However I got the 'cannot access private member declared in class' error I can...