Member Avatar
Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does …
by mayyubiradar in Web Development ()
Member Avatar
Hi, When I initialise then access the shared pointer, from within the member function, it works ok. Accessing the SP from the static member function of causes an in the original project and an abort in this sample project displayed below. In the original project I think the object is …
by Elixir42 in Software Development ()
Member Avatar
which include: Search demand User intent Competition Budget Timeframe Goals Profitability Scalability click here for details :
by diggdirectory -2 in Search Engine Strategies ()
Member Avatar
Hello Guys, Please help me how to pass a variable to a multiple projects in VB.NET like on VB6. The variables are user ID, user Name, Server Name and server database. In VB6 it can be used on multiple projects while on VB.Net is I don't have any idea. I …
by junallan.sampiano in Software Development ()
Member Avatar
Hi All, I want to get all the IPs of the A RECORDS for mail.google.com. The aim is to deny access to these IPs. I learnt that mail.google.com has several IPs. I did the following steps: 1. whois google.com 2. I got the following as its DOMAIN SERVERS: 3.# dig …
by CoolAtt in Linux and Unix ()
Member Avatar
Hi I was taught not to use global variables and one of my friend is using global variable for database handle for his website... could you please explain if there is an issue if he uses global variable for database handle? he is using it to access database from anywhere …
by t_thakar in Web Development ()
Member Avatar
I would like to have a file in my project which contains variables for use by all classes. I this possible to accomplish efficiently. I have heard that using a module with static varibles could work.
by Patrick_3 in Software Development ()
Member Avatar
I'm having a bit of a problem with how to code something. Here is how it is in my head. I want a function which is not part of a class to access members of that class, so I want to make the class global. I have done this with …
by Suzie999 229 in Software Development ()
Member Avatar
I'm new to c# programming, and I am a little stuck on how to make a variable available across multiple forms. I read that i should make a public static class, however, my code is as follows: I want to make the variable AccountNo available on other forms, however, when …
by pwolf 14 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
I have tons of files in this project as I am programming an ARM board. Making a tilt snake game where the snake is controlled by an accelerometer. I am using a timer interupt (handled by timer0.c) to toggle a boolean variable stored in "includes.h" that tells "main.c" if food …
by RockJake28 in Software Development ()
Member Avatar
Based off some stuff from my last thread I tried to write a search results page using maximum 3 parameters. I used a couple of function to try and get everything organized. One: sort_mysql_results has no defined parameters so I can put in as many parameters as needed. The code …
by dancks 4 in Web Development ()
Member Avatar
hi, I am recently very curious to know how I can make a connection between two computers which are not in a local network. I googled a lot but there are always solutions for local IPs Now I know that I should make a server and a client to send …
by MeSam0804 in Software Development ()
Member Avatar
I am developing in WordPress plugins and I would like to know.if someone could guide Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how …
by drumichael87 in Web Development ()
Member Avatar
hey all I've searched all over the web and i didn't get a solution! what should i do to take the text from the 'urlT' line edit? is there another way? Nameerror "global name 'self' is not defined" whats wrong with it? from PyQt4 import QtCore, QtGui class Ui_MainWindow(object): def …
by memomk in Software Development ()
Member Avatar
My site needs a way to know whether a user is an admin or not in multiple pages. So is it safe to store whether a user is an admin or not in session variable? Or is there a better alternative (Maybe another superglobal variable?), It will only hold a …
by athulram in Web Development ()
Member Avatar
I am new to python and cant figure out what I am doing wrong with the global variables. Here is an example of the problem I am having. number = 0 def test(): global number number = raw_input("Please type a number.") def prints(): global number if number2 != 1: print …
by sc0tty in Software Development ()
Member Avatar
I was working on a project when I thought that maybe a ::. operator would look funny in some code. Just for fun I typed that into the global scope area like this: ::. int main() { //etc... and my code completion software said too many results to display. My …
by Labdabeta 182 in Software Development ()
Member Avatar
I am attempting to create a global temp table to be used between two sessions being called from a webservice. When I attempt to access the temp table from the second session it can not be found. The reason I am using a global temp table is because the initial …
by Mike_ in Software Development ()
Member Avatar
In the following code : !/usr/bin/python -- coding: iso-8859-1 -- import Tkinter import os import threading class Fil (threading.Thread): def init (self): threading.Thread.init (self) print "Init Fil" def f1 (self): print 'f1' #app().ecrit(1) class App(Tkinter.Tk): def init(self,parent): Tkinter.Tk.init(self,parent) print "Init App" self.initialize() ping() def ping(): for x in xrange ( …
by Jean Declaix in Software Development ()
Member Avatar
Hello everyone, I am creating UDF using CREATE FUNCTION statement. The question is how can I make them globally accessible to all the databases, rather than specific database? Regards,
by tanha -2 in Databases ()
Member Avatar
class Personaje(object): def init(self,vida,posicion,velocidad): vida = None posicion = None velocidad = None recibir_ataque = None Hello! :) I'm having a little problem with this code i recently made to test myself. Everything goes very well, i can import everything fine, i create the object Personaje() but when i want …
by Nachodsk -3 in Software Development ()
Member Avatar
I am new to python and am making a program with the wxpython module and no matter what I try I get a NameError: global name 'outp' is not defined?? Can someone help? Here is the code, it is fairly complex: import wx class jake(wx.Frame): def func1(self,event): global foo foo+="1" …
by jakethepython in Software Development ()
Member Avatar
Im creating a time-base site wherein the timestamp should rely on the global time and not to my PC's time (because it can be out-dated somethimes). How can I do that?
by rakwel10 in Web Development ()
Member Avatar
Hello, I have the following script: function selectThis(id){ var locationstring = "process.php?value=" + id; ///// locationstring += "&bs=" + $('#bs_' + id).attr("selectedIndex"); locationstring += "&ad=" + $('#ad_' + id).attr("selectedIndex"); locationstring += "&ns=" + $('#ns_' + id).attr("selectedIndex"); locationstring += "&wt=" + $('#wt_' + id).attr("selectedIndex"); locationstring += "&in=" + $('#in_' + id).attr("selectedIndex"); …
by Tchibo in Web Development ()
Member Avatar
ok so im making a windows forms application in microsoft visual C# 2010. this is how i got it to change form: page_2 page2 = new page_2(); page2.Visible = true; this.Visible = false; page2.SetDesktopLocation(50, 50); the form its on is page_1 and its going to page_2. this works fine, the …
by Jake110 in Software Development ()
Member Avatar
Hi all, I am hoping that the DaniWeb community might be willing to assist me in my research efforts. I am a researcher based in University College Cork (Ireland) and I am involved in a research study on the subject of software development in global virtual teams. As part of …
by gk2010 in Community Center ()
Member Avatar
I am a total noob at php and I am creating a basic wordpress plugin for a site. I have a function function My_Function_2() { ?> Then I have an input inside a div coming from an options page: <form method="post" action="options.php"> <?php wp_nonce_field('update-options'); ?> Define Box height <table width="350"> …
by Acids in Web Development ()
Member Avatar
Hello , I am stuck on this line of code echo $hits[0]; i am trying to get it to echo into a text box as an integar. at the moment the code <?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); …
by Kniggles in Web Development ()
Member Avatar
<?php include ("counter.php"); ?><HTML><HEAD><?php function sidney() { global $id; } sidney(); echo "$id"; ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"> </HEAD><BODY><INPUT value='[$id]' name="player number"></BODY></HTML> please can you explain why [$id] dos not echo a number ? thanks.
by Kniggles in Web Development ()