<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[C++ code in VB 2010]]></title><description><![CDATA[<p>Ich habe mal ein auszug von meinen c++ programm....</p>
<p>In diesem c++ Programm wird ein code erzeugt wie folgedend :</p>
<pre><code>void	GetSerialNumber(char *sDrive, char *serial)
{
	DWORD SerialNum;
	char  tmp1[255],tmp2[255];

	memset(tmp1,0,255);
	memset(tmp2,0,255);
	GetVolumeInformationA(NULL, NULL, NULL, &amp;SerialNum, NULL, NULL, NULL, NULL);
	sprintf(serial, &quot;%d&quot;, SerialNum );
	return;
}

int	IsVIP1(char *area, char *Guid)
{
	sprintf(szURL, &quot;h****uidcheck.php?serial=%s&quot;, Guid );
	// get maximum 256 bytes of the response
	if (URLgetpage(szURL,szResult,256)==0) return 96;				// Unable to verify GUID
	else {
	sprintf(szPredict, &quot;%s&quot;, md5(md5(md5(md5(Guid)))));
	if (strcmp(szResult,szPredict)&gt;=0){
	return 0;}
	}
	return 95;// guid does not match
}
</code></pre>
<pre><code>int	vipcheck(char *section)
{
	char    Guid[81],ch;
	int		i;

            char HDD3[200];
			char *disk=&quot; :\\&quot;;
			disk[0]='c';
            GetSerialNumber(disk,HDD3);
			strcat(HDD3,&quot;-0Wce8.&amp;K&amp;%y:#&quot;);			// add something
            strcpy(szGuid,md5(md5(md5(HDD3))));
			for (i=0; i&lt;13; i+=3) {					// switch some chars from the md5
				ch=szGuid[i];
				szGuid[i]=szGuid[i+17];
				szGuid[i+17]=ch;
			}
            strcpy(Guid,szGuid);
            GUIDstat=IsVIP1(section,Guid);
            if (GUIDstat!=0) {
				if (GUIDstat==95)
                Writelog(&quot;[ GuidTech Error ] - Paste your GUID in the System !&quot;);
				Writelog(&quot;[ GuidTech Error ] - Your GUID -&gt; %s&quot;,szGuid);
                Writelog(&quot;[ GuidTech Error ] - Enter your GUID at h****/ &quot;);
			    Writelog(&quot;&quot;);
				ExitProcess(0);
				MessageBox(NULL,&quot;GUID Not Verified Read text file for more info!&quot;,0,MB_ICONSTOP);
				ExitProcess(0);

			} else{

				Writelog(&quot;Your GUID Is -&gt; %s&quot;,szGuid);
				Writelog(&quot;Checking Guid in Database -&gt; Ok!&quot;);
				Writelog(&quot;Guid Status -&gt; Verified&quot;);
				Writelog(&quot;&quot;);

			}
    return GUIDstat;
	}
</code></pre>
<p>Und jezt meine frage ! Ich möchte diesen code in Visual Basic erzeugen in einer Textbox nur wie stelle ich das an es ist ja eigentlich nur md5 + md5 oder? von disk</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/313085/c-code-in-vb-2010</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 08:41:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/313085.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Jan 2013 14:29:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ code in VB 2010 on Mon, 21 Jan 2013 14:29:52 GMT]]></title><description><![CDATA[<p>Ich habe mal ein auszug von meinen c++ programm....</p>
<p>In diesem c++ Programm wird ein code erzeugt wie folgedend :</p>
<pre><code>void	GetSerialNumber(char *sDrive, char *serial)
{
	DWORD SerialNum;
	char  tmp1[255],tmp2[255];

	memset(tmp1,0,255);
	memset(tmp2,0,255);
	GetVolumeInformationA(NULL, NULL, NULL, &amp;SerialNum, NULL, NULL, NULL, NULL);
	sprintf(serial, &quot;%d&quot;, SerialNum );
	return;
}

int	IsVIP1(char *area, char *Guid)
{
	sprintf(szURL, &quot;h****uidcheck.php?serial=%s&quot;, Guid );
	// get maximum 256 bytes of the response
	if (URLgetpage(szURL,szResult,256)==0) return 96;				// Unable to verify GUID
	else {
	sprintf(szPredict, &quot;%s&quot;, md5(md5(md5(md5(Guid)))));
	if (strcmp(szResult,szPredict)&gt;=0){
	return 0;}
	}
	return 95;// guid does not match
}
</code></pre>
<pre><code>int	vipcheck(char *section)
{
	char    Guid[81],ch;
	int		i;

            char HDD3[200];
			char *disk=&quot; :\\&quot;;
			disk[0]='c';
            GetSerialNumber(disk,HDD3);
			strcat(HDD3,&quot;-0Wce8.&amp;K&amp;%y:#&quot;);			// add something
            strcpy(szGuid,md5(md5(md5(HDD3))));
			for (i=0; i&lt;13; i+=3) {					// switch some chars from the md5
				ch=szGuid[i];
				szGuid[i]=szGuid[i+17];
				szGuid[i+17]=ch;
			}
            strcpy(Guid,szGuid);
            GUIDstat=IsVIP1(section,Guid);
            if (GUIDstat!=0) {
				if (GUIDstat==95)
                Writelog(&quot;[ GuidTech Error ] - Paste your GUID in the System !&quot;);
				Writelog(&quot;[ GuidTech Error ] - Your GUID -&gt; %s&quot;,szGuid);
                Writelog(&quot;[ GuidTech Error ] - Enter your GUID at h****/ &quot;);
			    Writelog(&quot;&quot;);
				ExitProcess(0);
				MessageBox(NULL,&quot;GUID Not Verified Read text file for more info!&quot;,0,MB_ICONSTOP);
				ExitProcess(0);

			} else{

				Writelog(&quot;Your GUID Is -&gt; %s&quot;,szGuid);
				Writelog(&quot;Checking Guid in Database -&gt; Ok!&quot;);
				Writelog(&quot;Guid Status -&gt; Verified&quot;);
				Writelog(&quot;&quot;);

			}
    return GUIDstat;
	}
</code></pre>
<p>Und jezt meine frage ! Ich möchte diesen code in Visual Basic erzeugen in einer Textbox nur wie stelle ich das an es ist ja eigentlich nur md5 + md5 oder? von disk</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2291908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2291908</guid><dc:creator><![CDATA[MarkusxX]]></dc:creator><pubDate>Mon, 21 Jan 2013 14:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Mon, 21 Jan 2013 15:34:19 GMT]]></title><description><![CDATA[<p>Kommst du ernsthaft ins C++-Forum und fragst nach Visual Basic?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2291922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2291922</guid><dc:creator><![CDATA[Captain Obvious]]></dc:creator><pubDate>Mon, 21 Jan 2013 15:34:19 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Mon, 21 Jan 2013 15:38:46 GMT]]></title><description><![CDATA[<p>Wiso nicht wenn ich im VB forum frage gehts wieder anders rum? aber d.h nicht das es jemand nicht wissen könnte .</p>
<p>Die frage geht ja ins c++ sowie vb</p>
<p>Mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2291926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2291926</guid><dc:creator><![CDATA[MarkusxX]]></dc:creator><pubDate>Mon, 21 Jan 2013 15:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Mon, 21 Jan 2013 16:23:26 GMT]]></title><description><![CDATA[<p>Wenn ich dich richtig verstehe willst du den C++-Code nur<br />
in einer Textbox, oder?<br />
Das sehe dann so aus:</p>
<pre><code>textbox1.text = &quot;Dein Quellcode&quot;
</code></pre>
<p>0x0ERROR</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2291949</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2291949</guid><dc:creator><![CDATA[0x0ERROR]]></dc:creator><pubDate>Mon, 21 Jan 2013 16:23:26 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Mon, 21 Jan 2013 16:39:25 GMT]]></title><description><![CDATA[<p>Nein.</p>
<p>Der c++ code generiert ja einen bestimmten code :</p>
<p>sagen wir 9dasf8r237f2387f239f239h sieht er aus</p>
<p>und oben steht wie der in c++ generiert wird nur nicht in vb weis ich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2291959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2291959</guid><dc:creator><![CDATA[MarkusxX]]></dc:creator><pubDate>Mon, 21 Jan 2013 16:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Mon, 21 Jan 2013 17:52:32 GMT]]></title><description><![CDATA[<p>Kann man in einem VB-Programm auf die Programmargumente(Konsole) zugreifen?<br />
Wenn ja, kannst du von C++ aus das VB-Programm aufrufen. Das sehe dann z.B.<br />
so aus:</p>
<pre><code>(...)
system(&quot;C:\\deinprogramm.exe 9dasf8r237f2387f239f239h&quot;);
return 0;
</code></pre>
<p>Danach musst du den Code nur noch in VB auslesen un in der Textbox ausgeben.</p>
<p>0x0ERROR</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2291985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2291985</guid><dc:creator><![CDATA[0x0ERROR]]></dc:creator><pubDate>Mon, 21 Jan 2013 17:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Tue, 22 Jan 2013 00:06:16 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/29459">@MarkusxX</a><br />
Na dann wirst du dir eine MD5 Implementierung in VB suchen müssen. Wird dir hier vermutlich keiner schreiben wollen, aber vielleicht gibt's ja was Fertiges.</p>
<p>Und überdenke nochmal das Interface deiner <code>md5()</code> Funktion. Das ist ja grauenhaft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2292082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2292082</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 22 Jan 2013 00:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to C++ code in VB 2010 on Tue, 22 Jan 2013 06:35:40 GMT]]></title><description><![CDATA[<p>Captain Obvious schrieb:</p>
<blockquote>
<p>Kommst du ernsthaft ins C++-Forum und fragst nach Visual Basic?</p>
</blockquote>
<p>Erlaube mir dich zu verbessern:<br />
Kommst du ernsthaft mit C-Quellcode ins C++-Forum und fragst nach Visual Basic ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2292100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2292100</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Tue, 22 Jan 2013 06:35:40 GMT</pubDate></item></channel></rss>