I want to know how can we open a file dialog from withing a class module in vb6. I know how to do in forms, but I have to open it from within a class module.
I've got two branches from my master: v2.1 (version 2) I've been working on for several months; wss that I created yesterday to add one specific feature to my master (in production)
Is there a way to copy yesterday's commits from wss to v2.1?
Hello All,
How do i Convert .doc format to pdf file from iphone .
i Want same layout as .doc format.
i Tried with html format but did not get any success.
anyone suggest any solution would be appreciated.
Thank you.
I used the Redgate packager (ran MSI) to reset all the data in my database (i.e. I deleted everything, and let it build the new database). Unfortunately, I discovered that it didn't retain my diagrams, which has a nice arrangement and several annotations.
Is there any way to copy/migrate/script the diagram from one database to another (the databases have identical structures).
Thanks,
Neal Walters
Hello!
Are there tools out there which could automatically find copy-and-paste code among a set of files?
I was thinking of writing a script for this, which would just search for equal strings, but such script would find mostly irrelevant equalities. (Such as private final static ...).
I am using 7za command line
File dfat_clist.xls in directory 2010_05_07
The same dfat_clist.xls in directory 2010_05_08
Zips are created in the same directory where the xls files resides
string pars = "a -tzip \"" + Path.Combine( SourceDir,ZipName) + "\" \"" + Path.Combine( SourceDir, Mask ) + "\"" ;
Parameters given to 7za are full paths for zip and xls.
For some reason a couple of bytes are different A7 and A8 values for directories 2010_05_07 and 2010_05_8 respectively. How to achieve identical results and out of curiosity what causes this problem.
Whenever I switch to DDMS view and start method profiling, I get the following error message when I stop profiling:
Method Profiling Error:
Unable to download trace file:
Remote object doesn't exist!
This only happens with 1.6 and 2.1 AVDs, 2.2 and 2.3 work fine. I've been having this problem ever since the latest update to the Eclipse Android plugin. I'm using Eclipse 3.5.2 on Ubuntu 10.04 with Android Development Toolkit version 8.0.0.v201011171904-77661. Let me know if you need any more information.
import java.io.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
import org.w3c.dom.*;
public class CreatXMLFile {
public static void main(String[] args) throws Exception {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
// System.out.print("Enter number to add elements in your XML file: ");
// String str = bf.readLine();
int no=2;
// System.out.print("Enter root: ");
String root = "SMS";
DocumentBuilderFactory documentBuilderFactory =DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder =documentBuilderFactory.newDocumentBuilder();
Document document = documentBuilder.newDocument();
Element rootElement = document.createElement(root);
document.appendChild(rootElement);
// for (int i = 1; i <= no; i++)
// System.out.print("Enter the element: ");
// String element = bf.readLine();
String element ="Number";
System.out.print("Enter the Number: ");
String data = bf.readLine();
Element em = document.createElement(element);
em.appendChild(document.createTextNode(data));
rootElement.appendChild(em);
String element1 ="message";
System.out.print("Enter the SMS: ");
String data1 = bf.readLine();
Element em1 = document.createElement(element1);
em1.appendChild(document.createTextNode(data1));
rootElement.appendChild(em1);
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
DOMSource source = new DOMSource(document);
StreamResult result = new StreamResult(System.out);
transformer.transform(source, result);
}
}
i am working on the above code and it gives the following output
run:
Enter the Number: 768678
Enter the SMS: ytu
<?xml version="1.0" encoding="UTF-8" standalone="no"?><SMS><Number>768678</Number><message>ytu</message></SMS>BUILD SUCCESSFUL (total time: 8 seconds)
Now i want to write the output generated(<?xml version="1.0" encoding="UTF-8" standalone="no"?><SMS><Number>768678</Number><message>ytu</message></SMS>) to a XML file on the hard disk.How do i do it?
I've got two branches from my master: v2.1 (version 2) I've been working on for several months; wss that I created yesterday to add one specific feature to my master (in production)
Is there a way to copy yesterday's commits from wss to v2.1?
I'm using Claus Wahlers' AIR Remote Updater class (codeazur.com.br/lab/airremoteupdater/). All works fine and an update is triggered if the remote version is newer. The newer file is downloaded and the update starts. However I then get "an error has occured" message: "This application cannot be installed because this installer has been mis-configured"
(The same file will update without errors when run manually "Would you like to replace the currently installed version?" Choosing 'replace' works fine)
I have enabled Air Application Installer logging and I can see that both the app id and the pub id match - this seems to be a common reason for this problem (forums.adobe.com/thread/243421?tstart=60)
The error given in the log file is as follows:
AIR file version doesn't match
Requested version: ; AIR file version: 1.0.2
But if I unzip the new app file and look at META-INF\AIR\application.xml the version designator shows <version>1.0.2</version> As requested!
The log file is also showing me where the newer file is being downloaded and unpacked. If I look at the application.xml file in that directory:
Unpackaging to C:\Documents and Settings\myusername\Local Settings\Temp\fla893D.tmp
the version designator also shows <version>1.0.2</version>
I don't get it?! The log tells me that the requested file version doesn't match but it's exactly the same as what's shown in the version designator of the downloaded update package...
This is driving me crazy. Can anyone help?
I have a directory, let's say, "work": ~/work/
This directory has some sub-folders (d1, d2...) in it and files in these sub-folders. I want to make a backup copy in the same folder, so it would be like: ~/backup/work/
However, when I use
cp -r ./work ./backup
the folder "work" is not copied, only its subfoders (so now it's ~/backup/d1 ~/backup/d2...)
Any idea how to make it work? I'm quite new to shell, so I'm missing something :)
I have a file consisting of lines of the form
Foo="Some information" Bar="More"
Starting with such a string, what is the best way to extract "Some information" and "More" as strings? Foo and Bar are always exactly those names.
Hi
I want to read pdf file with original content like its font(its possible that some font size is small while some font size is big ) and paragraph and table if it is.
how its possible.
plz help.
I want to use implicit linking in my project , and nmake really wants a .def file . The problem is , that this is a class , and I don't know what to write in the exports section .
Could anyone point me in the right direction ?
The error message is the following :
NMAKE : U1073: don't know how to make 'DLLCLASS.def'
P.S: I'm trying to build using Windows CE Platform Builder .
I am looking for an example which does a file upload with a progress bar, in Django.
I have been trying djangp-uploadify for quiet sometime, but have not been able to get it working.
I have been trying something similar to that given in http://stackoverflow.com/questions/2821612/djangouploadify-dont-working/2887831 and also in http://wiki.github.com/tstone/django-uploadify
Quick Help would be great
I have created one custom module in drupal.In that module i have a form for adding some products details.For adding image i have downloaded and enabled the image upload module.
But my problem is how i can integrate the file upload module in my custom form.
Thanks in advance.
Hello,
I have c/gtk+ application and GList which filled three elements, when i try to run following code with gdb:
if (g_list_length(mw->img_list) > 0)
printf(">0");
else
printf("<0");
i see:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb73c4700 (LWP 7936)]
IA__g_list_length (list=0x6e6920) at glist.c:767
767 glist.c: No such file or directory.
in glist.c
What is it?
Thank you.
this is simple I know, but i don't have internet access and this netcafes keyboard sucks, so if someone can answer this question please.
what would be the class ? just give me a kick in the right direction. there is simple arraylist object that I want to write and read to/ from file.
thanks
Hi
Say you have a SWF file with an FLV player that you want to embed on any site. A scenario could look like this:
Url of the page embedding the SWF: www.example.com
Url to the SWF: www.swf-domain.com/player.swf
Url to the FLV: www.swf-domain.com/movie.flv
Is there any possible way, that you can refer to the FLV from within the SWF using a relative path?
Hi, when using scaffolding on a controller the views render fine and the app even attempts to insert the data; the problem is that the scaffold is completely ignoring the relations I'm defining in my model class, in fact it's ignoring the class entirely as I can delete the file and the controller still scaffolds and render the crud from the table.
Has this ever happened to you?
I'd like to change the OS on my laptop. I currently use Windows 7, but would like to install Ubuntu, but I'm not sure exactly what I need on the new OS. I've deployed an app to Heroku, which required my ssh key, is that all I need to copy over? Or are there other files I need as well?
Hi guys i am using android ndk and for that i am trying to create a c header file using javah tool how to use and where to use this tool i am unable to understand so please any one can
tell me the procedure how to do that i am waiting for the reply please.........
Is there a way to use a skin file in a theme only when a certain browser is used?
The theme stays the same, I just want skin A to apply when a certain browser is used, and skin B when another browser is used. I know I can have server-side code to check and then set the SkinId of the control to either or, but is there another, more global way?
Thanks
What is the best solution to play an audio file on mouse over via JavaScript? And stop it when the mouse leaves the link. jQuery is available.
<a href="/test.mp3" class="play">play</a>