Hello,
I basically have a script in c++, and want to convert it to vb6. The help i need is something like this
dim SomeString as String '--> what is the c++ equivalent
#include<stdio.h>
'// what is the vb6 equivalent
#define MAX_BUF_SIZE 1024
if i can get a syntax comparison sheet sort of that compares very well, i'ld be ok
thanks
...
how could i change a random non-uniform distribution to a uniform distribution ? Is there a formula ? thanks .
...
I am currently working on a project that dynamically displays DB content into table.
To edit the table contents i am want to use the dynamically created "string"+id value.
Is there any way to retrieve the appended int value from the whole string in javaScript?
Any suggestions would be appreciative...
Thanks!!!
...
The return type of my query is IEnumerable<XElement>. how can i convert the resultant data to XElement type? is it possible? could some body help me to understand this.
var resQ = from e in docElmnt.Descendants(xmlns + Constants.T_ROOT)
.Where(x => x.Attribute(Constants.T_ID).Value == "testid")
s...
I'd like to convert some university papers from LaTeX into ePub format - without using PDF as intermediate format. You know, PDF is page-oriented, while ePub is more flow-oriented.
While I found several hints, I failed to find a good 'standard' solution.
Could someone please propose the ideal way? One which keeps mathematical formulas ...
I have the following code:
var personIds = from player in myPlayers select player.person_id;
where personIds is an IEnumerable<string> that I'd like to convert to List<ulong>, since person_id is convertable via Convert.ToUInt64()
Is this easily done in LINQ?
...
I am trying to create an mp4 file from the data of a .wav file.
I need to do this to submit it to a C# MediaElement as its source.
I have been having problems playing a .wav file with the media element while my application takes "exclusive mode" control of all sounds on the platform.
I found that if I set my source as a .mp4 file, the...
I'm writing a Web application that let user upload images in several formats (e.g. png,jpg,bmp). After the image has been uploaded the system should convert it to "png" and scale it to a predefined resolution.
To convert the image I use the handy method:
javax.imageio.ImageIO.write(im, type, baos);
Here's where the problem start. The...
I am currently reading from an ini file with a key/value pair. i.e.
isValid = true
When get the key/value pair I need to convert a string of 'true' to a bool. Without using boost what would be the best way to do this?
I know I can so a string compare on the value ("true", "false") but I would like to do the conversion without havin...
Hello all,
I have been looking over StackOverflow and have not found any answers yet, if I missed a post which answers this I apologize and would be grateful for the link.
I am trying to change a string "prod.Start" into a NSDate type for comparison with today's date. The following code myDate returns "1753-01-01 00:00:00 -075258"
CO...
Guys I want to convert an avi file into yuv 420 video clip. Is there any method to do that? thx!
...
I'm trying to pull time zone information out of the registry so I can perform a time conversion. The registry data type is REG_BINARY which holds information about a REG_TZI_FORMAT
structure. The key is stored at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \CurrentVersion\Time Zones\(time_zone_name)
How do I get the REG_BINARY infor...
Hi
In linux i'm doing the below to convert a multipage PDF into images resized and with a high resolution:
convert -verbose -colorspace RGB -resize 800 -interlace none -density 300 -quality 80 test.pdf test.jpg
For the life of me, i can't seem to reproduce this EXACT command using RMagick. I tried something like this below but the im...
Hi,
This is my code and i want to convert it in php. pls. i need a help thanks.
...
Dear Python Experts,
I have the following sample code where I download a pdf from the European Parliament website on a given legislative proposal:
EDIT: I ended up just getting the link and feeding it to adobes online conversion tool (see the code below):
import mechanize
import urllib2
import re
from BeautifulSoup import *
adobe = "...
Does any one know of a Delphi to .NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search - maybe that's because one...
I've got the following code from php.net:
$GLOBALS['normalizeChars'] = array(
'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj','Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A',
'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I',
'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', ...
I try to convert string to ListViewItem:
ListViewItem str = (ListViewItem)Convert.ChangeType(az, typeof(ListViewItem));
but it doesn't work. What is wrong in this code?
...
Converting numbers to strings is no problem, but the string created uses ascii numbers. I am inserting the number in a Japanese sentence. The character itself is correct, say 3, for example, but the width and positioning should be a little different when typing in Japanese. As a result the number looks cramped up against the following ch...
Hey,
I'm wondering if there is a way to extract the necessary data out of an autocad .dxf file, so I can visualize the structure in opengl?
I've found some old cold snippets for windows written in cpp but since the standard changes I assume 15 yr old code is a little outdated.
Also, there is a book about the .dxf file standard but it'...