 |
|
 |
I'm not a guru but I get by. Could someone point me in the right direction on how to implement the DLL in my web site?
Jon
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, sorry for my inglish.
I have a problem during the build of the project.
//Using System.Resources; MemoryStream memoryStream = new MemoryStream(Resources.GetResource(fileName));
Error 'ThoughtWorks.QRCode.Properties.Resources' does not contain a definition for 'GetResource' //
Can you help me for this.
I have an other code for the QRCode whith C++, but i can't genrete it in Windows 2003 Server R2 x64 bits. no problem in Windows 2003 Server R2 x32 bits.
Je reste a votre disposition pour toute explication.
Thinks. 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
File : QRCodeEncoder.cs Line : 799 Column : 17 Method : calculateRSECC
Here I got a IndexOutOfRangeException while setting rsTemp[rsBlockNumber][j], since rsTemp[rsBlockNumber] is 0 in length, but it tried to set the value of rsTemp index 0.
while (i2 < maxDataCodewords) { rsTemp[rsBlockNumber][j] = codewords[i2]; j++; if (j >= (rsBlockOrder[rsBlockNumber] & 0xFF) - rsEccCodewords) { j = 0; rsBlockNumber++; } i2++; }
If I changed it into these :
while (i2 < maxDataCodewords) { if (rsTemp[rsBlockNumber].Length < 1) rsTemp[rsBlockNumber] = new sbyte[maxDataCodewords]; rsTemp[rsBlockNumber][j] = codewords[i2]; j++; if (j >= (rsBlockOrder[rsBlockNumber] & 0xFF) - rsEccCodewords) { j = 0; rsBlockNumber++; } i2++; }
It will fail on the next loop, since rsTemp is this {sbyte[1][]}. The size of rsTemp is determined from the parameter rsBlockOrder length, which is determined from the code from line 496 through line 503 (calQrCode method) :
sbyte rsBlockOrderLength = 1; for (sbyte i = 0; i < 127; i++) { if (rsBlockOrderTemp[i] == 0) { rsBlockOrderLength = (sbyte)(i+1); break; } }
which there are no zero (0) entries in rsBlockOrderTemp array, so rsBlockOrderLength will always be 1.
I really don't know how to fix this, no matter what combination of Encoding, Version, and Correction Level I choose, this error always comes up . But, when I run the Release compiled version, it just worked .
Any help would be greatly appreciated.
Regards,
pilus.
modified on Friday, April 10, 2009 8:38 AM
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
I found the namepace here is ThoughtWorks.QRCode.Codec, as ThoughtWorks is a company, is there any licensse issue if I use it in my application, which is used for comercial purpose.
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
So that means, I can use it in commercial applications, if only I follow the CPOL, without any fee to anybody, right?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I open your project on Visual Studio 2008 an this error occour :
Error 5 'ThoughtWorks.QRCode.Properties.Resources' does not contain a definition for 'GetResource'
on
MemoryStream memoryStream = new MemoryStream(Resources.GetResource(fileName));
Could you help me ?
Marco
|
| Sign In·View Thread·PermaLink | 3.50/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
Error : 'ThoughtWorks.QRCode.Properties.Resources' does not contain a definition for 'GetResource' File : "E:\projects\QRCode\QRCodeLib\QRCodeEncoder.cs" Line : 452 Column : 72 Project : QRCodeLib
The class doesn't have GetResources method. And I don't know what it do, so I can't just add it with some mumbling random code ... :P.
It seems that I'm the only one that got this problem, maybe I've downloaded the incorrect file ? And so, I tried download it, and it's still the same.
|
| Sign In·View Thread·PermaLink | 1.80/5 (5 votes) |
|
|
|
 |
|
|
 |
|
 |
I found the solution now. Just need to change the MemoryStream line. //MemoryStream memoryStream = new MemoryStream(Resources.GetResource(fileName)); MemoryStream memoryStream = new MemoryStream((byte[])Resources.ResourceManager.GetObject(fileName));
I got the solution from here: http://twit88.com/home/node/48[^]
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Yes, that worked, i can build an run the solution now. Although using the commented version, the one that using file, not MemoryStream, worked too.
|
| Sign In·View Thread·PermaLink | 2.75/5 (4 votes) |
|
|
|
 |
|
 |
I want to take the knowledge of QR code.So from where i can learn step by step programming.kindly reply as soon as possible.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
It is great job. Any one try to use the decoding part with mobile built-in camera picture. I tried but No result.
|
| Sign In·View Thread·PermaLink | 1.20/5 (5 votes) |
|
|
|
 |
|
|
 |
|
 |
This library is just excellent but too slow on the WindowsMobile. I have profiled this library's decoder and I found the bottleneck that is the "QRCodeDecoder::imageToIntArray" method. I attempt to decode a jpg file(VGA,low-quality) that includes qr-code and the "QRCodeDecoder::imageToIntArray" method had consumed 41[sec] ! 
I hope it will be blew over.
■Environment CPU:ARM PXA270 OS:WindowsMobile 6 Classic
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
More to say. Bottlenecks are the Bitmap::getPixel method and large size images(VGA etc). Can this library decodes the QVGA ? 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I met a problem while (i2 < maxDataCodewords) { rsTemp[rsBlockNumber][j] = codewords[i2]; j++; if (j >= (rsBlockOrder[rsBlockNumber] & 0xFF) - rsEccCodewords) { j = 0; rsBlockNumber++; } i2++; }
IndexOutOfRangeException could you help me please? Thank you!here is my skype :shelly19831229
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
在 System.IO.FileNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常 在 System.IO.FileNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常 在 System.IO.DirectoryNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常 在 System.IO.DirectoryNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常 在 System.IO.DirectoryNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常 在 System.IndexOutOfRangeException 中第一次偶然出现的“ThoughtWorks.QRCode.dll”类型的异常
while (i2 < maxDataCodewords) { rsTemp[rsBlockNumber][j] = codewords[i2]; j++; if (j >= (rsBlockOrder[rsBlockNumber] & 0xFF) - rsEccCodewords) { j = 0; rsBlockNumber++; } i2++; }
I don't know how to solve this problem ,Please help me ,Thank you!
|
| Sign In·View Thread·PermaLink | 3.50/5 (2 votes) |
|
|
|
 |
|
 |
I am using QR Code library for mobile phone
When I open the solution file I am not able to load both the mobile projects and gets the following error
Error retrieving information from user database. Platform not found.
The project could not be opened becuase it refer to a device platform that doea bot exists in your datastore
I got rid of this error by changing the platform Id to
3C41C503-53EF-4c2a-8DD4-A8217CAD115E in both the .csproj files of mobile projects
Now the solution loads successfully
When I try the Encode with default settings,I get the error "IndexOutOfRangeException"
on line number 777 rsTemp[rsBlockNumber][j] = codewords[i2]; in class QRCodeEncoder.cs
Can any one help me how to get rid of this error, I whole work is struck because of this
Hoping for the quick reply
Regards Saurabh Sondhi
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
There is a QRcode printed in a book or a card. Then we take the photo concluding the QRcode and some other things around it. How can we divide the photo and decode the QRcode?
Thank you .
|
| Sign In·View Thread·PermaLink | 1.90/5 (10 votes) |
|
|
|
 |